Docs
CLI configuration
Project config in .eanvi/config.json and credentials under ~/.eanvi.
CLI configuration
Project config — .eanvi/config.json
Created by eanvi init. The CLI searches upward from the current directory for this file.
{
"project": "my-app",
"environment": "development",
"envFile": ".env",
"organization": "acme"
}
| Field | Required | Description |
|---|---|---|
project | Yes | Project slug |
environment | No | Default environment (default development) |
envFile | No | Local env path (default .env) |
organization | No | Organization slug |
Precedence
Command-line flags override config file values:
- CLI flags (
--project,--environment,--org, …) .eanvi/config.json- Built-in defaults
Credentials — ~/.eanvi/credentials.json
Written by eanvi login. Contains the API token and optional metadata. Never commit this file.
Treat it like an SSH private key. Prefer short-lived org API keys for shared machines.
Environment variables
| Variable | Purpose |
|---|---|
EANVI_API_KEY | Optional key for SDK/CLI tooling (prefer eanvi login on local machines) |
Passing --api-key on a command overrides stored credentials for that run.
Git recommendations
| Path | Commit? |
|---|---|
.eanvi/config.json | Yes (shared project defaults) |
.env / .env.* | No |
~/.eanvi/credentials.json | No (user home) |
Add to .gitignore:
.env
.env.*
!.env.example