Spaces:
Configuration error
Configuration error
File size: 1,589 Bytes
3a65265 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | ---
summary: "CLI reference for `moltbot devices` (device pairing + token rotation/revocation)"
read_when:
- You are approving device pairing requests
- You need to rotate or revoke device tokens
---
# `moltbot devices`
Manage device pairing requests and device-scoped tokens.
## Commands
### `moltbot devices list`
List pending pairing requests and paired devices.
```
moltbot devices list
moltbot devices list --json
```
### `moltbot devices approve <requestId>`
Approve a pending device pairing request.
```
moltbot devices approve <requestId>
```
### `moltbot devices reject <requestId>`
Reject a pending device pairing request.
```
moltbot devices reject <requestId>
```
### `moltbot devices rotate --device <id> --role <role> [--scope <scope...>]`
Rotate a device token for a specific role (optionally updating scopes).
```
moltbot devices rotate --device <deviceId> --role operator --scope operator.read --scope operator.write
```
### `moltbot devices revoke --device <id> --role <role>`
Revoke a device token for a specific role.
```
moltbot devices revoke --device <deviceId> --role node
```
## 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.pairing` (or `operator.admin`) scope.
|