agentuity avatar

agentuity-cli-cloud-secret-set

Set a secret. Requires authentication. Use for Agentuity cloud platform operations

提供方 agentuity|开源

Cloud Secret Set

Set a secret

Prerequisites

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

Usage

agentuity cloud secret set <key> <value>

Arguments

ArgumentTypeRequiredDescription
<key>stringYes-
<value>stringYes-

Examples

Set the DATABASE_URL environment secret:

bunx @agentuity/cli secret set DATABASE_URL "postgres://user:pass@host:5432/db"

Set the STRIPE_SECRET_KEY environment secret:

bunx @agentuity/cli secret set STRIPE_SECRET_KEY "sk_live_..."

Output

Returns JSON object:

{
  "success": "boolean",
  "key": "string",
  "path": "string"
}
FieldTypeDescription
successbooleanWhether the operation succeeded
keystringSecret key name
pathstringLocal file path where secret was saved