AgentSkillsCN

agentuity-cli-cloud-env-import

从文件导入环境变量到云端和本地.env。需要认证。用于Agentuity云平台操作

SKILL.md
--- frontmatter
name: agentuity-cli-cloud-env-import
description: Import environment variables from a file to cloud and local .env. Requires authentication. Use for Agentuity cloud platform operations
version: "0.0.110"
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 requires-project"

Cloud Env Import

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

Prerequisites

  • Authenticated with agentuity auth login
  • Project context required (run from project directory or use --project-id)

Usage

bash
agentuity cloud env import <file>

Arguments

ArgumentTypeRequiredDescription
<file>stringYes-

Examples

Import environment variables from .env file:

bash
bunx @agentuity/cli cloud env import .env

Import from .env.local file:

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

Output

Returns JSON object:

json
{
  "success": "boolean",
  "imported": "number",
  "skipped": "number",
  "path": "string",
  "file": "string"
}
FieldTypeDescription
successbooleanWhether import succeeded
importednumberNumber of items imported
skippednumberNumber of items skipped
pathstringLocal file path where variables were saved
filestringSource file path