Skip to content
EANVI

Docs

CLI commands

Full reference for every eanvi command and flag.

CLI commands

All commands support --help. Global flags: --api-url / --url, --api-key, --org.

eanvi login

Authenticate with browser (OAuth/SSO), email & password, or API key.

eanvi login
eanvi login [--api-key <key>]
eanvi login --browser
eanvi login -e you@company.com -p '***' -o acme
eanvi login --api-key eanvi_sk_live_... --key-name "laptop"

Running eanvi login with no flags shows interactive login options.

FlagDescription
-b, --browserBrowser OAuth / SSO / social login
--api-key <key>Authenticate with an API key
--api-url / --urlAPI endpoint override
-e, --emailAccount email
-p, --passwordAccount password
-o, --orgOrganization slug
--key-nameName for a created CLI token

Stores credentials in ~/.eanvi/credentials.json.

eanvi logout

Clear stored credentials and end the active CLI session.

eanvi logout

eanvi whoami

Show the authenticated user and organization.

eanvi whoami

eanvi init

Initialize .eanvi/config.json in the current directory.

eanvi init [--project <name>] [--environment <env>]
eanvi init -p my-app -e development -f .env.local
eanvi init --force
FlagDescription
-p, --projectProject slug
-e, --environmentEnvironment slug (default development)
-f, --env-fileLocal env file path (default .env)
-o, --orgOrganization slug
--forceOverwrite existing config without prompting

eanvi pull

Download secrets from remote and write a local env file.

eanvi pull [--environment <env>] [--output <file>]
eanvi pull -e production --output .env.production --force
eanvi pull --format json
FlagDescription
-p, --projectProject slug
-e, --environmentEnvironment slug
-o, --orgOrganization slug
--outputOutput file path
--formatenv or json (default env)
-f, --forceOverwrite output file

eanvi push

Upload local .env secrets to remote.

eanvi push [--dry-run] [--force]
eanvi push --file .env.local --delete-missing --dry-run
FlagDescription
--fileSource .env path
--dry-runPreview without writing remote
-f, --forceBypass base version checks
--delete-missingDelete remote keys absent locally
--base-versionOptimistic concurrency base version

eanvi sync

Bidirectional sync with conflict resolution.

eanvi sync [--yes] [--dry-run]
eanvi sync -y --force
FlagDescription
-y, --yesAuto-resolve non-conflicting merges
--dry-runShow diff without writing
-f, --forcePrefer local on conflicts
--fileLocal env file path

eanvi list

List secrets in the current environment.

eanvi list [--reveal]
eanvi list --json
FlagDescription
--revealPrint plaintext values
--jsonJSON output

eanvi diff

Compare local .env to remote.

eanvi diff
eanvi diff --file .env.local --json
FlagDescription
--fileLocal env path
--jsonJSON diff

eanvi doctor

Check installation, connectivity, credentials, and config.

eanvi doctor
eanvi doctor --verbose

eanvi import

Import secrets from .env, JSON, or YAML.

eanvi import <file> [--environment <env>] [--dry-run]
eanvi import secrets.yaml --format yaml --skip-conflicts
FlagDescription
--formatenv, json, or yaml (auto-detect default)
--dry-runPreview only
--overwriteOverwrite on conflict (default)
--skip-conflictsSkip existing keys

eanvi export

Export secrets to .env, JSON, or YAML.

eanvi export [--format env|json|yaml] [--output <file>]
eanvi export --format yaml --output secrets.yaml --tags database
FlagDescription
--formatenv, json, or yaml (default env)
--outputFile path (stdout if omitted)
--tagsComma-separated tag filter