Skip to content

Get started with the EnvWallet CLI

Connect your terminal to EnvWallet and keep your project's environment variables close at hand.

You'll need Node.js and either pnpm or npm installed. Create an account or sign in before authorizing the CLI.

1. Install the CLI

Choose the command for your package manager. A global install makes the envwallet command available from any project.

With pnpm

pnpm add -g envwallet-cli

With npm

npm install -g envwallet-cli

2. Connect your account

Run login, then follow the browser prompt to sign in and approve the device code.

envwallet login

3. Link a project and pull

Open your project folder, link it to a wallet, then pull its environment variables into the project. You can create a wallet first on the Wallets page.

cd your-project
envwallet link
envwallet pull

Have existing .env files?

Run push from your project folder to upload .env and .env.local to EnvWallet. Allow write access when connecting your CLI. If your device was connected with read-only access, run login again.

envwallet push
Run without a global install

Connect and pull with a package runner

With npm

  • npx --package=envwallet-cli envwallet login
  • cd your-project
  • npx --package=envwallet-cli envwallet link
  • npx --package=envwallet-cli envwallet pull

With pnpm

  • pnpm dlx --package=envwallet-cli envwallet login
  • cd your-project
  • pnpm dlx --package=envwallet-cli envwallet link
  • pnpm dlx --package=envwallet-cli envwallet pull

Use pnpm dlx in projects that use pnpm. For push, run pnpm dlx --package=envwallet-cli envwallet push or npx --package=envwallet-cli envwallet push from your project folder.

View or revoke device access on the Connected CLIs page.