SetDocumentation Index
Fetch the complete documentation index at: https://staplehire.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
STAPLEHIRE_KEY as a CI secret, install the CLI, and use -q or piped JSON for automation.
Quickstart
Do not usestaplehire login in CI. Browser login is for local development.
GitHub Actions example
Environment variables
| Variable | Description |
|---|---|
STAPLEHIRE_KEY | API key, for example sh_live_... or sh_test_... |
STAPLEHIRE_API_URL | Optional API gateway override |
STAPLEHIRE_APP_URL | Optional dashboard URL for login and open |
Machine-readable output
Use-q, --json, or a pipe when scripts need JSON without human status lines.
Common errors
| Error | Cause | Fix |
|---|---|---|
AuthenticationError | Secret is missing or empty | Add STAPLEHIRE_KEY to CI secrets |
PermissionError | Key lacks organization access | Create a key for the correct organization |
Exit code 8 | Bad CLI arguments | Run staplehire commands locally and pass required flags |
FAQ
Should CI run staplehire login?
No. login opens a browser. Use STAPLEHIRE_KEY instead.
Should I use --json or -q?
Use -q for JSON-only output when a command may print human status in an interactive context.