NexSpace CLI
The NexSpace CLI is the agent-friendly surface of the headless triad (REST, hosted MCP, CLI) — same auth model, JSON-friendly output, and first-class verbs for workforce operations. Package:@nexspace/cli@0.2.0 · Hosted MCP: https://mcp.nexspace365.com
Features
- Agent loop:
search→mcp schema→mcp call --dry-run→ execute - First-class commands for MCP verbs (shifts, staff, payroll, CRM, credentials, …)
- JSON by default for non-TTY /
NEXSPACE_CLI_JSON=1(--json/--no-json) - Structured errors
{ error, code, next }with exit2(auth) /3(input) - OAuth device-code login + API keys;
skill installfor Cursor / Claude - Facility pinning via
context use; suite filter via--suite - Webhooks CRUD +
events listen(HMAC verify + tunnel UX) - Approvals decide loop, audit / trajectories,
logs tail - Fixtures (
sandbox-reset,webhook-test) andconformance run - Inline
nexspace runwith injectedexecute/search/api/schema
Output format
Every command that prints a result takes--json / --no-json. When you pass
neither, the CLI picks for you:
That means agents and scripts get parseable output with no flag, while an
interactive terminal still gets tables.
Quick Start
Installation
npm, Homebrew, or curl installer.
Authentication
API key or OAuth device-code flow.
Commands
Full command reference.

