AgentSkillsCN

agentuity-cli-cloud-secret-import

从文件中导入密钥,同步至云端及本地 .env.production 文件。需要身份验证。适用于 Agentuity 云平台运维。

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

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.production.backup command:

bash
bunx @agentuity/cli secret import .env.production.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