Install

You can install Envless CLI using following command:

Install Envless CLI

# NPM
npm install -g envless
# Yarn
yarn global add envless
# PNPM
pnpm add -g envless

Update

Update Envless CLI

# NPM
npm update -g envless
# Yarn
yarn global upgrade envless
# PNPM
pnpm update -g envless

Initialize

You can initialize Envless CLI using following command. This command is used to setup CLI id and token for your project on your development environment. For a complete development setup, please follow our quickstart guide.

Initialize Envless CLI

envless init --id xxxxxxxx --token xxxxxxxx

For IaaS providers with Docker, K8S and others, PaaS (Vercel, Supabase, Netlify and others) and CI/CD pipelines (Github actions, Gitlab CI/CD, Circle CI and others), you can use ENV variables to initialize Envless CLI.

Envless ENV variables

export ENVLESS_CLI_ID=xxxxxxxx
export ENVLESS_CLI_TOKEN=xxxxxxxx
export ENVLESS_PROJECT_ID=xxxxxxxx
export ENVLESS_BRANCH_NAME=xxxxxxxx
export ENVLESS_PRIVATE_KEY="
  -----BEGIN PGP PRIVATE KEY BLOCK-----
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
"