Skip to content

Installation

The DraftStack CLI requires Node.js 20 or newer.

Install the packaged release from GitHub. Replace <version> with the release you want.

Terminal window
npm install -g https://github.com/pat-baseten/draftstack/releases/download/v<version>/draftstack-<version>.tgz

Confirm the install:

Terminal window
draftstack --version
Terminal window
draftstack auth login

The CLI uses the hosted API at https://draftstack-dev.vercel.app by default. Override it with --api-url when you run against another environment.

Check the active URL and login state:

Terminal window
draftstack auth status