Quickstart
Run a command with your Envlet variables in a few minutes.
You need Node.js 22 or later, npm, and a Git repository.
-
Install the CLI
Install the
envletcommand globally:Terminal window npm install -g @envlet/cliCheck that the command is available:
Terminal window envlet --help -
Sign in to Envlet
Start the browser login flow:
Terminal window envlet loginThe CLI shows a URL and a code. Open the URL, enter the code, and approve the login.
-
Create your environment
Open the Envlet dashboard.
Create a project, then create an environment in that project. Add the variables that your command needs.
To follow the example below, add
APP_GREETINGwith the shared valuehello from Envlet. -
Connect your repository
Open a terminal inside your Git repository, then run:
Terminal window envlet initSelect the project and environment when the CLI asks. Envlet writes the selection to
.envletat the repository root. -
Run your command
Run a command with the variables for the selected environment:
Terminal window envlet run -- node -e 'console.log(process.env.APP_GREETING)'The command prints
hello from Envlet. Putenvlet run --before the command that you normally use in the repository.
Where to go next
Section titled “Where to go next”Use Envlet in production to start servers with Envlet values.
Use the Node SDK when your application needs programmatic access.