@springbrand/hr-cli
v0.8.0
Published
SpringBrand HR from the command line, for people and Agents.
Readme
@springbrand/hr-cli
The hr command for SpringBrand HR, for people and Agents. Output is JSON on stdout.
npm i -g @springbrand/hr-cli
export HR_API_URL=https://your-hr-address
hr login
hr screening listConfiguration
| Setting | Required | Meaning |
| --- | --- | --- |
| HR_API_URL or --api-url | Yes | HR's address. --api-url wins. |
| HR_AGENT_KEY | No | An Agent key from IAM. When set, it is used instead of hr login. |
| HR_ACCESS_TOKEN | No | An access token already issued for this run (for example one an application got from IAM for its Agent acting on behalf of a person). When set, it is used instead of the key. |
| IAM_URL | No | IAM's address. By default HR reports it. |
| HR_CONFIG_DIR | No | Where hr login stores its token. Default ~/.config/saas-hr. |
| XDG_CONFIG_HOME | No | Moves the default to $XDG_CONFIG_HOME/saas-hr. |
Talents and applications in the output carry url, their page in the HR console, on the address HR reports.
hr --help lists every command by group; hr <group> --help (for example hr talents --help) shows a
group with what each command takes and returns. The CLI covers the whole HR API: a test fails when an
API route has no command. Fields a command has no flag for go in --json '{…}' or --json @file.json.
Agents: see .agents/skills/saas-hr-cli/SKILL.md.
