Skip to content
EANVI

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"
}
FieldRequiredDescription
projectYesProject slug
environmentNoDefault environment (default development)
envFileNoLocal env path (default .env)
organizationNoOrganization slug

Precedence

Command-line flags override config file values:

  1. CLI flags (--project, --environment, --org, …)
  2. .eanvi/config.json
  3. 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

VariablePurpose
EANVI_API_KEYOptional 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

PathCommit?
.eanvi/config.jsonYes (shared project defaults)
.env / .env.*No
~/.eanvi/credentials.jsonNo (user home)

Add to .gitignore:

.env
.env.*
!.env.example

Related