AgentSkillsCN

agentuity-cli-cloud-env-set

设置环境变量或密钥。需进行身份验证。可用于 Agentuity 云平台的运维操作。

SKILL.md
--- frontmatter
name: agentuity-cli-cloud-env-set
description: Set an environment variable or secret. Requires authentication. Use for Agentuity cloud platform operations
version: "0.1.24"
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"

Cloud Env Set

Set an environment variable or secret

Prerequisites

  • Authenticated with agentuity auth login

Usage

bash
agentuity cloud env set <key> <value> [options]

Arguments

ArgumentTypeRequiredDescription
<key>stringYes-
<value>stringYes-

Options

OptionTypeRequiredDefaultDescription
--secretbooleanNofalsestore as a secret (encrypted and masked in UI)
--orgoptionalStringYes-set at organization level (use --org for default org, or --org <orgId> for specific org)

Examples

Set environment variable:

bash
bunx @agentuity/cli env set NODE_ENV production

Set port number:

bash
bunx @agentuity/cli env set PORT 3000

Set a secret value:

bash
bunx @agentuity/cli env set API_KEY "sk_..." --secret

Set an organization-wide secret:

bash
bunx @agentuity/cli env set OPENAI_API_KEY "sk_..." --secret --org

Output

Returns JSON object:

json
{
  "success": "boolean",
  "key": "string",
  "path": "string",
  "secret": "boolean",
  "scope": "string"
}
FieldTypeDescription
successbooleanWhether the operation succeeded
keystringEnvironment variable key
pathstringLocal file path where env var was saved (project scope only)
secretbooleanWhether the value was stored as a secret
scopestringThe scope where the variable was set