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-cliWith npm
npm install -g envwallet-cli2. Connect your account
Run login, then follow the browser prompt to sign in and approve the device code.
envwallet login3. 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 pullHave 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 pushRun without a global install
Connect and pull with a package runner
With npm
npx --package=envwallet-cli envwallet logincd your-projectnpx --package=envwallet-cli envwallet linknpx --package=envwallet-cli envwallet pull
With pnpm
pnpm dlx --package=envwallet-cli envwallet logincd your-projectpnpm dlx --package=envwallet-cli envwallet linkpnpm 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.