Skip to main content

crocbot devices

Manage device-scoped tokens.

Commands

crocbot devices list

List registered devices and their tokens.

crocbot devices rotate --device <id> --role <role> [--scope <scope...>]

Rotate a device token for a specific role (optionally updating scopes).

crocbot devices revoke --device <id> --role <role>

Revoke a device token for a specific role.

Common options

  • --url <url>: Gateway WebSocket URL (defaults to gateway.remote.url when configured).
  • --token <token>: Gateway token (if required).
  • --password <password>: Gateway password (password auth).
  • --timeout <ms>: RPC timeout.
  • --json: JSON output (recommended for scripting).

Notes

  • Token rotation returns a new token (sensitive). Treat it like a secret.
  • These commands require operator.admin scope.