Docs
CLI overview
Authenticate, sync, and manage encrypted secrets from your terminal.
CLI overview
The @eanvi/cli package (eanvi) keeps local .env files in sync with encrypted remote environments.
What it does
| Command | Purpose |
|---|---|
login / logout / whoami | Authentication and session |
init | Write .eanvi/config.json |
pull / push / sync | Move secrets between local and remote |
list / diff | Inspect state |
import / export | File formats |
doctor | Diagnose config and connectivity |
Quick start
eanvi login
eanvi init --project my-app --environment development
eanvi pull
eanvi doctor
eanvi login opens interactive options (browser, email & password, or API key). For CI, use eanvi login --api-key "$EANVI_API_KEY".
Global options
Available on most commands:
| Flag | Description |
|---|---|
--api-url <url> / --url <url> | Override API base URL |
--api-key <key> | Override stored credentials for one invocation |
--org <slug> | Override active organization |
Configuration
Project defaults live in .eanvi/config.json. Credentials live in ~/.eanvi/credentials.json (never commit).
See: