Create a role from a job description and get a role ID plus apply URL back as JSON.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.
Quickstart
Parameters
| Flag | Required | Description |
|---|---|---|
--jd <text> | Yes | Job description string, file path, @path, or - for stdin |
Examples
Create a role from inline text
Create a role from a Markdown file
Create a role from stdin
List and inspect roles
roles list returns:
Common errors
| Error | Cause | Fix |
|---|---|---|
ValidationError | Missing or empty --jd | Pass a JD string, @file, or - |
AuthenticationError | API key is missing | Run staplehire login or set STAPLEHIRE_KEY |
PermissionError | Key cannot create roles | Check organization permissions |
FAQ
Can the CLI parse a job description file?
Yes. Use--jd @./job-description.md.
What value do I pass to candidate and sourcing commands?
Use.role.id from the roles create, roles list, or roles get output.
Does role creation return an apply URL?
Yes. Read.apply_url from the JSON output.
Related: Add a candidate with the Staplehire CLI · Source candidates with the Staplehire CLI · Command reference