Skip to content

Configuration

~/.envsh/config.json — created automatically on first login.

{
"server_url": "https://api.envsh.dev",
"active_workspace": "workspace-uuid",
"output_format": "table"
}

To point at a self-hosted server, edit server_url.

~/.envsh/credentials — stores auth tokens. Permissions: 0600.

{
"tokens": {
"workspace-uuid": {
"access_token": "eyJ...",
"refresh_token": "abc...",
"email": "alice@example.com",
"workspace_id": "workspace-uuid"
}
}
}
TokenLifetimeNotes
Access token24 hoursAuto-refreshed by CLI
Refresh token30 daysSingle-use (rotated on each refresh)

~/.envsh/machines/{name} — one file per machine created locally. Permissions: 0600.

envsh-machine-v1:AABBCCDD...

The CLI checks these environment variables:

VariableDescription
ENVSH_MACHINE_KEYMachine private key for CI/CD auth
ENVSH_SERVEROverride server URL

When ENVSH_MACHINE_KEY is set, the CLI uses machine authentication automatically.

PathPurpose
~/.envsh/config.jsonCLI configuration
~/.envsh/credentialsAuth tokens
~/.envsh/machines/Machine private keys
~/.ssh/id_ed25519Default SSH private key
~/.ssh/id_ed25519.pubDefault SSH public key