AgentSkillsCN

agentuity-cli-cloud-env-get

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

SKILL.md
--- frontmatter
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.24"
license: Apache-2.0
allowed-tools: "Bash(agentuity:*)"
argument-hint: "<key>"
metadata:
  command: "agentuity cloud env get"
  tags: "read-only fast requires-auth"

Cloud Env Get

Get an environment variable or secret value

Prerequisites

  • Authenticated with agentuity auth login

Usage

bash
agentuity cloud env get <key> [options]

Arguments

ArgumentTypeRequiredDescription
<key>stringYes-

Options

OptionTypeRequiredDefaultDescription
--maskSecretbooleanYes-mask the secret value in output
--orgoptionalStringYes-get from organization level (use --org for default org, or --org <orgId> for specific org)

Examples

Get environment variable:

bash
bunx @agentuity/cli env get NODE_ENV

Get a secret value:

bash
bunx @agentuity/cli env get API_KEY

Show unmasked value:

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

Get org-level variable:

bash
bunx @agentuity/cli env get OPENAI_API_KEY --org

Output

Returns JSON object:

json
{
  "key": "string",
  "value": "string",
  "secret": "boolean",
  "scope": "string"
}
FieldTypeDescription
keystringEnvironment variable key name
valuestringEnvironment variable value
secretbooleanWhether the value is stored as a secret
scopestringThe scope where the variable was found