| name | agentuity-cli-cloud-env-get |
| description | Get an environment variable or secret value. Requires authentication. Use for Agentuity cloud platform operations |
| version | 0.1.11 |
| license | Apache-2.0 |
| allowed-tools | Bash(agentuity:*) |
| argument-hint | <key> |
| metadata | {"command":"agentuity cloud env get","tags":"read-only fast requires-auth requires-project"} |
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
| Argument | Type | Required | Description |
|---|
<key> | string | Yes | - |
Options
| Option | Type | Required | Default | Description |
|---|
--maskSecret | boolean | Yes | - | 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"
}
| Field | Type | Description |
|---|
key | string | Environment variable key name |
value | string | Environment variable value |
secret | boolean | Whether the value is stored as a secret |