Install CLI
Run getmyenv with a single npx command. No install step.
Last updated: 2026-09-20
No install
The getmyenv CLI runs through npx. You do not need a global install. Every command in the docs starts with npx getmyenv.
npx getmyenv --helpThe first run downloads the CLI into your npx cache. Subsequent runs use the cached binary.
The CLI npm package is getmyenv (always latest; no version pin).
Requirements
- Node.js 20 or newer
- A getmyenv account (free to create)
- A modern terminal (macOS, Linux, or Windows)
Check your Node version with node --version. If you are on an older release, upgrade before continuing.
CLI token
Open the dashboard, go to CLI, and create a token. Then run npx getmyenv login and paste it once. The CLI saves it on your machine. Login may offer to run migrate next. You can also skip login: migrate and other commands ask for the token when needed and save it the same way.
npx getmyenv login
npx getmyenv link
# or: npx getmyenv migrate
npx getmyenv run -- npm startCI may set GETMYENV_TOKEN without login. Day-to-day use does not need shell env syntax.
API URL
The CLI talks to https://getmyenv.com by default. For a local app, pass --api-url or save it during login: npx getmyenv login --api-url http://localhost:3000.
npx getmyenv login --api-url http://localhost:3000
npx getmyenv status --api-url http://localhost:3000