Documentation Index
Fetch the complete documentation index at: https://docs.envless.cloud/llms.txt
Use this file to discover all available pages before exploring further.
The auth model
On a developer machine,envless login caches a token and decryption key at ~/.envless/config.json. CI and production hosts don’t have that, so they authenticate with a personal access key:
ci-production, vercel-preview) so revocation is targeted.
GitHub Actions
.github/workflows/deploy.yml
ENVLESS_ENV picks which environment from .envless to fetch. If you only linked one, it’s not needed.
Vercel
- Generate a key in the dashboard.
- Add
ENVLESS_TOKENto your Vercel project’s environment variables. - The
@goenvless/envless/nextplugin picks it up duringnext buildautomatically.
ENVLESS_ENV=staging (or whichever environment you mirror previews against).
Docker
Dockerfile
Fly.io, Railway, Render
SetENVLESS_TOKEN as a platform secret. Set ENVLESS_ENV=production (or whatever you named the environment). Build and run as normal.
Kubernetes
ExternalSecret operator (separate guide coming).
Choosing the environment
The loader picks the environment in this order:ENVLESS_ENVenv var if set.- The single environment in
.envless, if there’s only one. - The first environment in
.envless, with a warning.
ENVLESS_ENV explicitly — relying on order is brittle.
What ships to the runtime
| Component | Dev | CI build | Production runtime |
|---|---|---|---|
.envless | committed | committed | committed |
envless-env.d.ts | committed | committed | committed |
ENVLESS_TOKEN | — (uses cached key) | required | required |
| Encrypted bundle | fetched + cached on disk | fetched at build | fetched at boot |
| Plaintext values | in memory only | inlined into client chunks | in process.env |