Install
Installmel with npm or Homebrew:
Update
Check your installed version withmel --version, then upgrade with the same tool you installed with:
On Homebrew, always run
brew update first — it refreshes the tap so Homebrew sees the newest formula. A bare brew upgrade mel can report “already installed” because your local copy of the tap is stale.mel also nudges you when a newer version is published: after a command finishes, a one-line notice prints to stderr (never in JSON output, and never for agents or piped/non-interactive output). Silence it with MEL_NO_UPDATE_NOTIFIER=1. Releases follow semantic versioning — a major bump (for example 1.x → 2.x) can include breaking changes, so review what changed before upgrading across one.
Get an API key
mel authenticates with a Melius API key. Create one in the Melius app under Team settings → Integrations — give it a name, then copy it when it’s shown (you only see it once).
See API authentication for how keys are scoped.
Authenticate
There are two ways to givemel your key — pick one.
- Interactive (log in once)
- Environment variables (CI & agents)
Store the key in Confirm it worked:This returns your user (id, name, email). Clear stored credentials any time with
~/.mel/config.json so every command picks it up automatically:mel auth logout.Configuration
mel resolves settings in this order — environment variables → config file → defaults:
| Setting | Env var | Config key | Default |
|---|---|---|---|
| API key | MEL_API_KEY | apiKey | — |
| Base URL | MEL_BASE_URL | baseUrl | https://api.melius.com |
| Team | MEL_TEAM_ID | teamId | the key’s team |
Choosing a team
An API key acts as the user who created it, and can act on any team that user is a member of. Requests default to the team the key was created in; to act on another, set a team id:Shell completion
mel generates tab-completion scripts for bash, zsh, and fish. They’re built from the live command tree, so they never drift from the commands you have installed.
mel to complete command groups and their subcommands.
Next steps
Quickstart
Run your first generation end to end.
Command reference
Every command, flag, and exit code.