| name | agentuity-cli-cloud-env-import |
| description | Import environment variables and secrets from a file to cloud and local .env. Requires authentication. Use for Agentuity cloud platform operations |
| version | 0.1.11 |
| 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 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
| Argument | Type | Required | Description |
|---|
<file> | string | Yes | - |
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"
}
| Field | Type | Description |
|---|
success | boolean | Whether import succeeded |
imported | number | Number of items imported |
envCount | number | Number of env vars imported |
secretCount | number | Number of secrets imported |
skipped | number | Number of items skipped |
path | string | Local file path where variables were saved |
file | string | Source file path |