Move from .env files to Envlet
Turn the .env on every laptop into one shared environment that everyone runs from, in about ten minutes.
About 10 minutes
- 01
Sign in once
Install the CLI and sign in. It shows a URL and a code; approve in the browser and you are in.
Terminalnpm install -g @envlet/cli envlet login - 02
Create the project and link the repo
In the dashboard, create a project with development, staging, and production environments. Then link the repository so every command in it knows which environment to use.
envlet init writes a small .envlet file at the repo root. It holds names, not values, so commit it.
Terminalenvlet init - 03
Import the values
Set each value once with envlet set, or import the whole file with the MCP server.
Terminalenvlet set DATABASE_URL=postgres://... envlet set STRIPE_KEY=sk_live_... - 04
Run through Envlet
Put envlet run -- in front of the command you already use. Nothing else changes.
Then delete the .env files.
Terminalenvlet run -- npm run dev - 05
Or say the word
With the Envlet MCP server in Claude Code, Cursor, or Codex, this whole guide is one sentence: move us to Envlet. The agent does every step above, and no value ever enters the conversation.
Claude Codeclaude mcp add --scope user envlet -- npx -y @envlet/cli mcp