CLI Setup
Install the CLI package, then run setup and discovery commands.
Install the CLI Package
npm i -g envxtool-cli
envx --versionCommands
envx init
envx configure
envx login
envx logout
envx help [command]Usage Examples
npm i -g envxtool-cli
envx login
envx init
envx configure
envx help
envx help pullStep-by-Step
- Install the published CLI package globally.
- Run login and complete browser authorization.
- Run init to select organization, project, and default environment.
- Use configure when project or env context changes.
- Use help for command-specific usage and option descriptions.
What envx init Asks You
envx init is interactive. The exact questions depend on your organization/project state.
- Organization: if you belong to multiple orgs, it asks
Select an organization:. If there is only one org, it auto-selects it. - Project: it asks
Select a project:with existing projects plusCreate new project. - New project name: if you choose create project, it asks
What do you want to name your new project? (You can also change this later in the web app). - Environment: if environments exist, it asks
Select an environment to pull:. If none exist, it skips this and still writes config.
After selection, envx writes envx-config.json and tries to pull the selected environment version into your local env file.
What envx configure Asks You
envx configure uses the same prompt flow asinit, but starts from your existingenvx-config.json and rewrites it with your new selections.
- It requires envx-config.json to already exist.
- It prints your current config first.
- It re-asks organization, project, and environment selection.
- If no environments are found for the selected project, it warns and sets an empty environment in config.