agentuity avatar

agentuity-cli-cloud-env-import

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

提供方 agentuity|开源

Cloud Env Import

Import environment variables and 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 env import <file>

Arguments

ArgumentTypeRequiredDescription
<file>stringYes-

Examples

Import variables from backup file:

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

Import from .env.local file:

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

Output

Returns JSON object:

{
  "success": "boolean",
  "imported": "number",
  "envCount": "number",
  "secretCount": "number",
  "skipped": "number",
  "path": "string",
  "file": "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
filestringSource file path