CLI Guide
Team Collaboration
Team and member management lives in the dashboard — invitations, role changes, and member removal all happen through the web UI. The CLI is the runtime side of that story: each teammate authenticates with their own API key and gets scoped access to the same projects and environments.
Onboarding a New Teammate
- An owner or admin invites them via the dashboard. They receive an email with an accept link.
- Once they accept, they belong to the organization and can sign in.
- They install the CLI (install guide).
- They generate a personal API key from /dashboard/api-keys and run
envv login --token <KEY>. - From any project directory, they run
envv useto pin a project + environment.
Sharing Project Context
Two ways to share which project + environment a directory targets:
Commit .envv.json
When teammates clone the repo, envv use is unnecessary — they inherit the same project + env. The file contains no secrets, only IDs and names.
Document the project ID
Some teams prefer to keep .envv.json untracked. Document the project ID in the repo README and let teammates run envv use on their first checkout.
CI / Service Accounts
For CI runners and shared automation, use a dedicated API key rather than a personal one:
- Create the key under a service-account name (e.g.
github-actions-deploy) at /dashboard/api-keys. - Scope it to specific projects and (optionally) IP allowlist your runner.
- Set an expiry that matches your rotation cadence.
- Store the token in your CI provider's secret store and inject it as
ENVVAULT_TOKEN.
# .github/workflows/deploy.yml
- name: Deploy
env:
ENVVAULT_TOKEN: ${{ secrets.ENVVAULT_TOKEN }}
ENVVAULT_PROJECT: proj_2bk9
ENVVAULT_ENV: production
run: envv run -- npm run deployOffline / Slow-Network Contributors
Use the encrypted local cache to keep working when the API is unreachable:
# Warm the cache while online
envv run --env-cache -- npm run dev
# Subsequent runs within 24h reuse the cached env
envv run --env-cache -- npm run devCached payloads live at ~/.envv/cache/ with AES-256-GCM encryption. They expire after 24 hours.
Off-boarding
When a teammate leaves, the dashboard owner / admin should:
- Remove them from the organization at /dashboard/teams.
- Revoke any API keys they personally created at /dashboard/api-keys.
- Rotate any org secrets they had access to that were sensitive enough to warrant rotation.