Installation
Requirements
Section titled “Requirements”The DraftStack CLI requires Node.js 20 or newer.
Install the CLI
Section titled “Install the CLI”Install the packaged release from GitHub. Replace <version> with the release you want.
npm install -g https://github.com/pat-baseten/draftstack/releases/download/v<version>/draftstack-<version>.tgzConfirm the install:
draftstack --versionSign in
Section titled “Sign in”draftstack auth loginThe 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:
draftstack auth status