agentuity avatar

agentuity-cli-cloud-keyvalue-get

Get a value from the keyvalue storage. Requires authentication. Use for Agentuity cloud platform ope

提供方 agentuity|开源

Cloud Keyvalue Get

Get a value from the keyvalue storage

Prerequisites

  • Authenticated with agentuity auth login
  • Project context required (run from project directory or use --project-id)

Usage

agentuity cloud keyvalue get <namespace> <key>

Arguments

ArgumentTypeRequiredDescription
<namespace>stringYes-
<key>stringYes-

Examples

Get user data:

bunx @agentuity/cli kv get production user:123

Get cached session:

bunx @agentuity/cli kv get cache session:abc

Get homepage cache:

bunx @agentuity/cli kv get staging cache:homepage

Output

Returns JSON object:

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