AgentSkillsCN

agentuity-cli-cloud-keyvalue-get

从键值存储中获取值。需进行身份验证。可用于 Agentuity 云平台的运维操作。

SKILL.md
--- frontmatter
name: agentuity-cli-cloud-keyvalue-get
description: Get a value from the keyvalue storage. Requires authentication. Use for Agentuity cloud platform operations
version: "0.1.24"
license: Apache-2.0
allowed-tools: "Bash(agentuity:*)"
argument-hint: "<namespace> <key>"
metadata:
  command: "agentuity cloud keyvalue get"
  tags: "read-only fast requires-auth"

Cloud Keyvalue Get

Get a value from the keyvalue storage

Prerequisites

  • Authenticated with agentuity auth login

Usage

bash
agentuity cloud keyvalue get <namespace> <key>

Arguments

ArgumentTypeRequiredDescription
<namespace>stringYes-
<key>stringYes-

Examples

Get user data:

bash
bunx @agentuity/cli kv get production user:123

Get cached session:

bash
bunx @agentuity/cli kv get cache session:abc

Get homepage cache:

bash
bunx @agentuity/cli kv get staging cache:homepage

Output

Returns JSON object:

json
{
  "exists": "boolean",
  "data": "unknown",
  "contentType": "string"
}
FieldTypeDescription
existsbooleanWhether the key exists
dataunknownValue data (string or binary)
contentTypestringContent type