agentuity avatar

agentuity-cli-cloud-env-get

Get an environment variable or secret value. Requires authentication. Use for Agentuity cloud platfo

提供方 agentuity|开源

Cloud Env Get

Get an environment variable or secret value

Prerequisites

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

Usage

agentuity cloud env get <key> [options]

Arguments

ArgumentTypeRequiredDescription
<key>stringYes-

Options

OptionTypeRequiredDefaultDescription
--maskSecretbooleanYes-mask the secret value in output

Examples

Get environment variable:

bunx @agentuity/cli env get NODE_ENV

Get a secret value:

bunx @agentuity/cli env get API_KEY

Show unmasked value:

bunx @agentuity/cli env get API_KEY --no-mask

Output

Returns JSON object:

{
  "key": "string",
  "value": "string",
  "secret": "boolean"
}
FieldTypeDescription
keystringEnvironment variable key name
valuestringEnvironment variable value
secretbooleanWhether the value is stored as a secret