CLI
Install and auth
Install the StackTracker CLI from npm and set the two environment variables it reads.
The stacktracker-cli package ships a stacktracker binary. It needs Node.js 18 or newer.
Install
Install the package globally from npm:
npm i -g stacktracker-cli
stacktracker projectsOr run it without installing, using npx:
npx stacktracker-cli projectsWorking from the repo instead? Link the local binary from the cli/ directory:
cd cli
npm link
stacktracker projectsEnvironment variables
The CLI reads two environment variables.
| Variable | Required | Default | Purpose |
|---|---|---|---|
STACKTRACKER_API_KEY | Yes, for anything that talks to the server | none | Bearer token for the MCP endpoint. This is the SAME token as the MCP server's key. |
STACKTRACKER_URL | No | https://stacktracker.tools | Base URL of your StackTracker instance. |
The API key is the same one the MCP server uses. See /docs/mcp/authentication for how to get it.
Set your key
export STACKTRACKER_API_KEY=your-token-hereHow commands reach the server
Most commands call the same MCP server documented at /docs/mcp. Two commands run fully local: usage never touches the network, and scan only uploads when you pass --project.