staplehire binary before logging in.
Prerequisites
Install
- npm (recommended)
- npx (no install)
- From source
Installs the published package globally and puts the
staplehire binary on your PATH.@staplehire/staplehire-cli, and the binary it installs is staplehire.
Verify the install
doctor checks four things: the CLI version (against the latest on npm), your API key and where it came from, the API gateway URL, and a live GET /v1/me roundtrip.
Before you authenticate, the API Key and API Validation checks will report
fail — that is expected. Run staplehire login (or set STAPLEHIRE_KEY), then re-run doctor.doctor exits 1 if any check fails, so it doubles as a CI preflight:
Keep the CLI up to date
Check whether a newer version is published on npm:upgrade_command it returns.
FAQ
What package do I install?
What package do I install?
@staplehire/staplehire-cli. It installs the staplehire binary and (for TypeScript users) also exports the @staplehire/hire SDK.Do I need Node.js installed globally?
Do I need Node.js installed globally?
Yes — Node.js 18 or newer. The CLI runs on Node and is distributed through npm.
Should CI run `staplehire login`?
Should CI run `staplehire login`?
No. Browser login is for local development. In CI, set
STAPLEHIRE_KEY as a secret and verify with staplehire doctor -q. See Use in CI.Where can I read the source?
Where can I read the source?
The CLI and SDK live in the monorepo at
navindev26/Staplehire under packages/hire.