Commands Reference
Global Flags
| Flag | Description |
|---|---|
--api-key <key> | Override authentication |
--json | Output raw JSON (for scripting) |
--help | Show help |
--version | Show version |
nexspace login-device
Start OAuth device-code login flow.
nexspace logout
Remove stored credentials.
nexspace whoami
Print the current user and organization.
Facilities
nexspace facilities list
List all accessible facilities.
Staff
nexspace staff search
Search for staff members.
| Flag | Description |
|---|---|
--query <text> | Free-text search |
--specialty <code> | Filter by specialty |
--facility-id <id> | Filter by facility |
--limit <n> | Max results (default: 20) |
nexspace staff get <staffId>
Get full staff profile.
Shifts
nexspace shifts list
List shifts with optional filters.
| Flag | Description |
|---|---|
--facility-id <id> | Filter by facility |
--status <status> | open, filled, cancelled |
--from <date> | Start date (YYYY-MM-DD) |
--to <date> | End date (YYYY-MM-DD) |
nexspace shifts fill
Assign a staff member to a shift.
| Flag | Description |
|---|---|
--shift-id <id> | Target shift |
--staff-id <id> | Staff to assign |
API Keys
nexspace api-keys list
List all API keys for the current org.
nexspace api-keys create
Create a new API key.
| Flag | Description |
|---|---|
--name <name> | Key display name |
--scopes <scopes> | Comma-separated scopes |
--rate-limit <n> | Requests per minute |
nexspace api-keys revoke <keyId>
Revoke an API key immediately.
MCP
nexspace mcp tools
List all available MCP tools.
nexspace mcp call <toolName>
Invoke an MCP tool.
| Flag | Description |
|---|---|
--args <json> | Tool arguments as JSON |