GuidesMigrate
Move from .env files to Envlet
Turn the .env on every laptop into one shared environment that everyone runs from, in about ten minutes.
Steps
- 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 run the migrate prompt
With the Envlet MCP server in Claude Code, Cursor, or Codex, the migrate prompt does every step above. Values never enter the conversation.
Claude Codeclaude mcp add --scope user envlet -- npx -y @envlet/cli mcp