AgentSkillsCN

agentuity-cli-cloud-secret-import

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

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

Cloud Secret Import

Import secrets 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 secret import <file>

Arguments

ArgumentTypeRequiredDescription
<file>stringYes-

Examples

Run .env.local command:

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

Run .env.backup command:

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

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 secrets were saved
filestringSource file path