Skip to content

CLI reference — Boxes

Generated by bun run generate:cli-reference from spec/admin-api-openapi.json. Do not hand-edit — regenerate after refreshing the spec.

Every operation below is documented CLI-first (nayaone-admin api <operationId>) per PRD-407/DO-7. The REST /admin-api/* method+path is the fallback/alternative integration option.

7 operations in this area.

Get box tunnel status (Admin only)

CLI (preferred):

Terminal window
nayaone-admin api adminGetBoxTunnelStatus --param id=<id>

REST fallback: GET /admin-api/boxes/{id}/tunnel-status

Ensure a per-box capability subscription (platform admin or provision secret)

CLI (preferred):

Terminal window
nayaone-admin api adminInstallBoxCapability --param boxId=<boxId> --param catalogSlug=<catalogSlug> --body '{}'

REST fallback: POST /admin-api/boxes/{boxId}/capabilities/{catalogSlug}/install

List recent journal events for a box (admin — PRD-234)

CLI (preferred):

Terminal window
nayaone-admin api adminListBoxJournalEvents --param boxId=<boxId>

REST fallback: GET /admin-api/boxes/{boxId}/journal-events

Get box resources (Admin only)

CLI (preferred):

Terminal window
nayaone-admin api adminListBoxResources --param id=<id>

REST fallback: GET /admin-api/boxes/{id}/resources

List SSH-keypair rotation history for (boxId, roleName) (admin — PRD-263 Phase H)

CLI (preferred):

Terminal window
nayaone-admin api adminListBoxSshKeyHistory --param boxId=<boxId>

REST fallback: GET /admin-api/boxes/{boxId}/ssh-key-history

List every soft-deleted box (admin restore tab)

CLI (preferred):

Terminal window
nayaone-admin api adminListDeletedBoxes

REST fallback: GET /admin-api/boxes/deleted

Restore a soft-deleted box

CLI (preferred):

Terminal window
nayaone-admin api adminRestoreBox --param boxId=<boxId> --body '{}'

REST fallback: POST /admin-api/boxes/{boxId}/restore