Documentation
Command reference, SDK usage, REST endpoints, and how secret values are encrypted. OpenAPI JSON is available at /api/docs.
CLI quick start
Link the workspace CLI, authenticate, then bind a project.
npm link --workspace=@eanvi/clieanvi logineanvi login
Authenticate your machine with Eanvi via interactive email/password or API key.
--api-key <key>Authenticate directly with an API key token-e, --email <email>Account email address-p, --password <password>Account password-o, --org <slug>Target organization slug
eanvi login --api-key eanvi_sk_live_abc123eanvi init
Initialize a .eanvi/config.json in the current working directory.
-p, --project <slug>Project slug-e, --environment <slug>Environment slug (default: development)-f, --env-file <path>Target local env file (default: .env)--forceOverwrite existing configuration without prompt
eanvi init -p my-app -e developmenteanvi pull
Download decrypted environment secrets and write to a local env file.
--output <path>Custom output file (e.g. .env.local)--format <format>Output format: env or json-f, --forceOverwrite local file without prompting
eanvi pull --output .env.localeanvi push
Upload local env secrets to the remote environment with optimistic concurrency checks.
--file <path>Source env file (default: .env)--dry-runPreview changes without modifying remote secrets--delete-missingDelete remote secrets that are absent locally-f, --forceForce push bypassing version checks
eanvi push --dry-runeanvi sync
Bidirectional sync pulling remote updates and pushing local changes with conflict merging.
-y, --yesAuto-accept non-conflicting merges--dry-runPreview sync outcome without modifying files-f, --forceOverwrite remote conflicts with local values
eanvi sync --yeseanvi diff
Show differences between local .env and remote state (+ added, ~ modified, - removed).
--file <path>Local env file to compare--jsonOutput diff summary as JSON
eanvi diffeanvi list
List secrets in the active environment (masked by default).
--revealDisplay plaintext decrypted values in the terminal--jsonOutput secret list as JSON
eanvi list --revealeanvi doctor
Run diagnostics for CLI installation, auth, config, and API connectivity.
--verboseShow detailed diagnostic payload
eanvi doctoreanvi logout
Revoke the active server session and delete stored credentials from ~/.eanvi/credentials.json.
eanvi logout