CLI リファレンス • 5分で読める
デバイス
openclaw devices の CLI リファレンス(デバイスペアリング、トークンのローテーション/失効)。
デバイスペアリングリクエストとデバイススコープトークンを管理します。
Tutorial.step
コマンド
#
Tutorial.step
`openclaw devices list`
保留中のペアリングリクエストとペアリングされたデバイスを一覧表示します。
Terminal
openclaw devices list openclaw devices list --json
#
Tutorial.step
`openclaw devices approve <requestId>`
保留中のデバイスペアリングリクエストを承認します。
Terminal
openclaw devices approve <requestId>
#
Tutorial.step
`openclaw devices reject <requestId>`
保留中のデバイスペアリングリクエストを拒否します。
Terminal
openclaw devices reject <requestId>
#
Tutorial.step
`openclaw devices rotate --device <id> --role <role> [--scope <scope...>]`
特定のロールのデバイストークンをローテーションします(オプションでスコープを更新)。
Terminal
openclaw devices rotate --device <deviceId> --role operator --scope operator.read --scope operator.write
#
Tutorial.step
`openclaw devices revoke --device <id> --role <role>`
特定のロールのデバイストークンを失効にします。
Terminal
openclaw devices revoke --device <deviceId> --role node
Tutorial.step
一般的なオプション
- ''--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 出力(スクリプティングに推奨)。
Tutorial.step
Notes
- トークンローテーションは新しいトークンを返します(機密)。シークレットとして扱ってください。
- これらのコマンドには ''operator.pairing'' (または ''operator.admin'')スコープが必要です。