agentuity avatar

agentuity-cli-cloud-env-set

Set an environment variable. Requires authentication. Use for Agentuity cloud platform operations

提供方 agentuity|开源

Cloud Env Set

Set an environment variable

Prerequisites

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

Usage

agentuity cloud env set <key> <value>

Arguments

ArgumentTypeRequiredDescription
<key>stringYes-
<value>stringYes-

Examples

Run production command:

bunx @agentuity/cli env set NODE_ENV production

Run 3000 command:

bunx @agentuity/cli env set PORT 3000

Run debug command:

bunx @agentuity/cli env set LOG_LEVEL debug

Output

Returns JSON object:

{
  "success": "boolean",
  "key": "string",
  "path": "string"
}
FieldTypeDescription
successbooleanWhether the operation succeeded
keystringEnvironment variable key
pathstringLocal file path where env var was saved