StackTrackerdocs
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 projects

Or run it without installing, using npx:

npx stacktracker-cli projects

Working from the repo instead? Link the local binary from the cli/ directory:

cd cli
npm link
stacktracker projects

Environment variables

The CLI reads two environment variables.

VariableRequiredDefaultPurpose
STACKTRACKER_API_KEYYes, for anything that talks to the servernoneBearer token for the MCP endpoint. This is the SAME token as the MCP server's key.
STACKTRACKER_URLNohttps://stacktracker.toolsBase 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-here

How 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.

On this page