Guides

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

  1. 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.

    Terminal
    npm install -g @envlet/cli
    envlet login
  2. 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.

    Terminal
    envlet init
  3. 03

    Import the values

    Set each value once with envlet set, or import the whole file with the MCP server.

    Terminal
    envlet set DATABASE_URL=postgres://...
    envlet set STRIPE_KEY=sk_live_...
  4. 04

    Run through Envlet

    Put envlet run -- in front of the command you already use. Nothing else changes.

    Then delete the .env files.

    Terminal
    envlet run -- npm run dev
  5. 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 Code
    claude mcp add --scope user envlet -- npx -y @envlet/cli mcp

Stop pasting .env files.

One command. The right values for whoever runs it.