Skip to content
EANVI

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/cli
eanvi login

eanvi login

eanvi login [options]

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_abc123

eanvi init

eanvi init [options]

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 development

eanvi pull

eanvi pull [options]

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.local

eanvi push

eanvi push [options]

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-run

eanvi sync

eanvi sync [options]

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 --yes

eanvi diff

eanvi diff [options]

Show differences between local .env and remote state (+ added, ~ modified, - removed).

  • --file <path>Local env file to compare
  • --jsonOutput diff summary as JSON
eanvi diff

eanvi list

eanvi list [options]

List secrets in the active environment (masked by default).

  • --revealDisplay plaintext decrypted values in the terminal
  • --jsonOutput secret list as JSON
eanvi list --reveal

eanvi doctor

eanvi doctor [options]

Run diagnostics for CLI installation, auth, config, and API connectivity.

  • --verboseShow detailed diagnostic payload
eanvi doctor

eanvi logout

eanvi logout

Revoke the active server session and delete stored credentials from ~/.eanvi/credentials.json.

eanvi logout