| name | agentuity-cli-cloud-env-set |
| description | Set an environment variable or secret. Requires authentication. Use for Agentuity cloud platform operations |
| version | 0.1.11 |
| license | Apache-2.0 |
| allowed-tools | Bash(agentuity:*) |
| argument-hint | <key> <value> |
| metadata | {"command":"agentuity cloud env set","tags":"mutating updates-resource slow requires-auth requires-project"} |
Cloud Env Set
Set an environment variable or secret
Prerequisites
- Authenticated with
agentuity auth login
- Project context required (run from project directory or use
--project-id)
Usage
agentuity cloud env set <key> <value> [options]
Arguments
| Argument | Type | Required | Description |
|---|
<key> | string | Yes | - |
<value> | string | Yes | - |
Options
| Option | Type | Required | Default | Description |
|---|
--secret | boolean | No | false | store as a secret (encrypted and masked in UI) |
Examples
Set environment variable:
bunx @agentuity/cli env set NODE_ENV production
Set port number:
bunx @agentuity/cli env set PORT 3000
Set a secret value:
bunx @agentuity/cli env set API_KEY "sk_..." --secret
Output
Returns JSON object:
{
"success": "boolean",
"key": "string",
"path": "string",
"secret": "boolean"
}
| Field | Type | Description |
|---|
success | boolean | Whether the operation succeeded |
key | string | Environment variable key |
path | string | Local file path where env var was saved |
secret | boolean | Whether the value was stored as a secret |