AgentSkillsCN

agentuity-cli-cloud-env-import

从文件中将环境变量和密钥导入云端与本地 .env 文件。需进行身份验证。可用于 Agentuity 云平台的运维操作。

SKILL.md
--- frontmatter
name: agentuity-cli-cloud-env-import
description: Import environment variables and secrets from a file to cloud and local .env. Requires authentication. Use for Agentuity cloud platform operations
version: "0.1.24"
license: Apache-2.0
allowed-tools: "Bash(agentuity:*)"
argument-hint: "<file>"
metadata:
  command: "agentuity cloud env import"
  tags: "mutating creates-resource slow api-intensive requires-auth"

Cloud Env Import

Import environment variables and secrets from a file to cloud and local .env

Prerequisites

  • Authenticated with agentuity auth login

Usage

bash
agentuity cloud env import <file> [options]

Arguments

ArgumentTypeRequiredDescription
<file>stringYes-

Options

OptionTypeRequiredDefaultDescription
--orgoptionalStringYes-import to organization level (use --org for default org)

Examples

Import variables from backup file:

bash
bunx @agentuity/cli cloud env import .env.backup

Import from .env.local file:

bash
bunx @agentuity/cli cloud env import .env.local

Import to organization level:

bash
bunx @agentuity/cli cloud env import .env.shared --org

Output

Returns JSON object:

json
{
  "success": "boolean",
  "imported": "number",
  "envCount": "number",
  "secretCount": "number",
  "skipped": "number",
  "path": "string",
  "file": "string",
  "scope": "string"
}
FieldTypeDescription
successbooleanWhether import succeeded
importednumberNumber of items imported
envCountnumberNumber of env vars imported
secretCountnumberNumber of secrets imported
skippednumberNumber of items skipped
pathstringLocal file path where variables were saved (project scope only)
filestringSource file path
scopestringThe scope where variables were imported