CLI reference — Boxes
Generated by
bun run generate:cli-referencefromspec/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.
adminGetBoxTunnelStatus
Section titled “adminGetBoxTunnelStatus”Get box tunnel status (Admin only)
CLI (preferred):
nayaone-admin api adminGetBoxTunnelStatus --param id=<id>REST fallback: GET /admin-api/boxes/{id}/tunnel-status
adminInstallBoxCapability
Section titled “adminInstallBoxCapability”Ensure a per-box capability subscription (platform admin or provision secret)
CLI (preferred):
nayaone-admin api adminInstallBoxCapability --param boxId=<boxId> --param catalogSlug=<catalogSlug> --body '{}'REST fallback: POST /admin-api/boxes/{boxId}/capabilities/{catalogSlug}/install
adminListBoxJournalEvents
Section titled “adminListBoxJournalEvents”List recent journal events for a box (admin — PRD-234)
CLI (preferred):
nayaone-admin api adminListBoxJournalEvents --param boxId=<boxId>REST fallback: GET /admin-api/boxes/{boxId}/journal-events
adminListBoxResources
Section titled “adminListBoxResources”Get box resources (Admin only)
CLI (preferred):
nayaone-admin api adminListBoxResources --param id=<id>REST fallback: GET /admin-api/boxes/{id}/resources
adminListBoxSshKeyHistory
Section titled “adminListBoxSshKeyHistory”List SSH-keypair rotation history for (boxId, roleName) (admin — PRD-263 Phase H)
CLI (preferred):
nayaone-admin api adminListBoxSshKeyHistory --param boxId=<boxId>REST fallback: GET /admin-api/boxes/{boxId}/ssh-key-history
adminListDeletedBoxes
Section titled “adminListDeletedBoxes”List every soft-deleted box (admin restore tab)
CLI (preferred):
nayaone-admin api adminListDeletedBoxesREST fallback: GET /admin-api/boxes/deleted
adminRestoreBox
Section titled “adminRestoreBox”Restore a soft-deleted box
CLI (preferred):
nayaone-admin api adminRestoreBox --param boxId=<boxId> --body '{}'REST fallback: POST /admin-api/boxes/{boxId}/restore