Skip to main content

Documentation Index

Fetch the complete documentation index at: https://staplehire.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Use staplehire <resource> <action> to run hiring workflows from the terminal. Data commands return JSON on stdout.
staplehire commands | jq '.subcommands[].name'
Run staplehire commands for the live machine-readable command tree for your installed CLI version.

Authentication commands

CommandWhat it does
staplehire loginBrowser PKCE login; writes STAPLEHIRE_KEY to .env
staplehire logoutRemoves STAPLEHIRE_KEY from .env
staplehire whoamiVerifies the current API key and returns user and organization context
staplehire initDeprecated alias for login
staplehire meDeprecated alias for whoami

Roles commands

staplehire roles create --jd <text|@file|->
staplehire roles list [--status <s>] [--q <text>] [--limit <n>]
staplehire roles get <roleId>
staplehire roles candidates <roleId> [--stage-id <id>] [--source <s>]
See Create a role with the Staplehire CLI.

Candidate commands

staplehire candidates list [--role-id <id>] [--email <e>] [--q <text>] [--limit <n>]
staplehire candidates get <candidateId>
staplehire candidates create <roleId> --email <e> [--name <n>]
staplehire candidates move <candidateId> --stage-id <id>
staplehire candidates enrich <candidateId> [--prompt <text>] [--force]
staplehire candidates research <candidateId>
staplehire candidates screening-result <candidateId>
staplehire candidates send-interview <candidateId> --design <designId> [--mode email|link]
staplehire candidates interview-link <candidateId> --design <designId>
staplehire candidates send-email <candidateId> --subject <s> --title <t> --body <text|@file|->
See Add a candidate with the Staplehire CLI, Enrich a candidate with the Staplehire CLI, and Send an interview with the Staplehire CLI.

Sourcing commands

staplehire sourcing start <roleId> [--prompt <text>] [--force]
staplehire sourcing prospects <roleId>
sourcing list is an alias for sourcing prospects. See Source candidates with the Staplehire CLI.

Interview design commands

staplehire designs create <roleId> [--type <type>] [--brief <text>] [--round-title <title>]
staplehire designs list <roleId>
staplehire designs get <designId>
interview-design is a deprecated alias for designs.

Interview session commands

staplehire sessions list <roleId> [--candidate-email <email>]
interview-sessions is a deprecated alias for sessions.

Stage commands

staplehire stages create <roleId> --name <n> --position <p>
staplehire stages list <roleId>
staplehire stages candidates <roleId> <stageId>

Job commands

staplehire jobs get <jobId>
staplehire jobs list [--role-id <id>] [--candidate-id <id>] [--type <t>] [--status <s>] [--include-history]
staplehire jobs poll <jobId> [--interval <ms>] [--timeout <ms>]
See Poll Staplehire CLI jobs.

Utility commands

CommandDescription
staplehire doctorDiagnose CLI version, API key, API URL, and API reachability
staplehire open [path]Open the Staplehire dashboard
staplehire docsOpen documentation in the browser
staplehire updateCheck for CLI updates on npm
staplehire commandsPrint the machine-readable command tree
staplehire skills installInstall the agent skill into Cursor, Claude, and Codex roots

Global options

FlagDescription
--api-key <key>Override STAPLEHIRE_KEY for this invocation
--api-url <url>Override API gateway base URL
--app-url <url>Override dashboard URL for login and open
--jsonForce JSON output in an interactive terminal
-q, --quietSuppress human messages; implies --json
-h, --helpShow help
-v, --versionPrint version and exit
--profile <name>Reserved for multi-profile auth

Exit codes

CodeMeaning
1Generic or internal error
2Authentication, usually 401
3Validation, usually 400
4Not found, usually 404
5Conflict, usually 409
6Permission, usually 403
7Upstream, usually 502
8CLI usage or bad arguments
9jobs poll timeout
Related: CLI errors ยท Use the Staplehire CLI with AI agents