agentuity avatar

agentuity-cli-cloud-secret-import

Import secrets from a file to cloud and local .env. Requires authentication. Use for Agentuity cloud

提供方 agentuity|开源

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

agentuity cloud secret import <file>

Arguments

ArgumentTypeRequiredDescription
<file>stringYes-

Examples

Run .env.local command:

bunx @agentuity/cli secret import .env.local

Run .env.backup command:

bunx @agentuity/cli secret import .env.backup

Output

Returns JSON object:

{
  "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