cli-anything-rms について
cli-anything-rmsは、Teltonika RMSのREST APIを介してデバイスやアカウント関連のリソースを管理するコマンドラインツールです。ルーター、ゲートウェイ、IoTデバイスの運用担当者向けに、管理、監視、設定のコマンドを提供します。
主な機能
- 01デバイス、企業、ユーザーの管理
- 02アラートと設定の作成・管理
- 03リモートアクセスセッションの制御
- 04ログとデバイス位置の確認
- 05ファイル、レポート、ホットスポット、クレジットの管理
活用シーン
- 01オンライン状態やタグでデバイスを一覧表示
- 02デバイスのアラートとログを確認
- 03リモートアクセスセッションを作成
- 04デバイス設定やパスワードを更新
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ hkuds/ cli-anything --skill cli-anything-rmsインストール後、Claude Code で/cli-anything-rmsを入力して読み込まれたか確認します。
詳細
cli-anything-rms
Teltonika RMS(リモート管理システム)用の CLI ハーネスです。RMS REST API を通じてルーター、ゲートウェイ、IoT デバイスを管理します。
インストール
pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=rms/agent-harness
認証
RMS_API_TOKEN 環境変数を設定するか、cli-anything-rms config set api_token <token> を実行してください。
コマンドグループ
devices
devices list [--status online|offline] [--tag TAG] [--limit N] [--offset N] [--sort FIELD]— デバイスを一覧表示しますdevices get <device_id>— デバイスの詳細を取得しますdevices update <device_id> [--name NAME] [--tag TAG]— デバイスを更新しますdevices delete <device_id>— デバイスを削除します
companies
companies list [--limit N] [--offset N]— 企業を一覧表示しますcompanies get <company_id>— 企業の詳細を取得しますcompanies create --name NAME— 企業を作成しますcompanies update <company_id> [--name NAME]— 企業を更新しますcompanies delete <company_id>— 企業を削除します
users
users list [--limit N] [--offset N]— ユーザーを一覧表示しますusers get <user_id>— ユーザーの詳細を取得しますusers invite --email EMAIL [--role ROLE]— ユーザーを招待しますusers update <user_id> [--role ROLE]— ユーザーを更新しますusers delete <user_id>— ユーザーを削除します
tags
tags list [--limit N] [--offset N]— タグを一覧表示しますtags get <tag_id>— タグの詳細を取得しますtags create --name NAME— タグを作成しますtags update <tag_id> [--name NAME]— タグを更新しますtags delete <tag_id>— タグを削除します
alerts
alerts list [--device DEVICE_ID] [--limit N] [--offset N]— アラートを一覧表示しますalerts get <alert_id>— アラートの詳細を取得しますalerts delete <alert_id>— アラートを削除しますalerts configs list— アラート設定を一覧表示しますalerts configs get <config_id>— アラート設定を取得しますalerts configs create --data JSON— アラート設定を作成しますalerts configs update <config_id> --data JSON— アラート設定を更新しますalerts configs delete <config_id>— アラート設定を削除します
configs
configs list [--device DEVICE_ID] [--limit N] [--offset N]— デバイス設定を一覧表示しますconfigs get <config_id>— 設定を取得しますconfigs update <config_id> --data JSON— 設定を更新します
remote-access
remote-access list [--device DEVICE_ID] [--limit N]— セッションを一覧表示しますremote-access get <session_id>— セッションの詳細を取得しますremote-access create --device DEVICE_ID [--protocol PROTO] [--port PORT]— セッションを作成しますremote-access delete <session_id>— セッションを削除します
logs
logs list [--device DEVICE_ID] [--limit N] [--offset N]— ログを一覧表示しますlogs get <log_id>— ログの詳細を取得しますlogs delete <log_id>— ログを削除します
location
location get <device_id>— デバイスの現在地を取得しますlocation history <device_id> [--limit N] [--offset N]— 位置履歴
credits
credits list [--limit N] [--offset N]— クレジットを一覧表示しますcredits transfer --code CODE— クレジットを転送しますcredits codes [--limit N]— 転送コードを一覧表示します
files
files list [--limit N] [--offset N]— ファイルを一覧表示しますfiles get <file_id>— ファイルの詳細を取得しますfiles upload <file_path>— ファイルをアップロードしますfiles delete <file_id>— ファイルを削除します
reports
reports list [--limit N] [--offset N]— レポートを一覧表示しますreports get <report_id>— レポートを取得しますreports create --template TEMPLATE_ID [--name NAME]— レポートを作成しますreports delete <report_id>— レポートを削除しますreports templates list— レポートテンプレートを一覧表示します
hotspots
hotspots list [--device DEVICE_ID] [--limit N]— ホットスポットを一覧表示しますhotspots get <hotspot_id>— ホットスポットの詳細を取得しますhotspots create --device DEVICE_ID --name NAME— ホットスポットを作成しますhotspots update <hotspot_id> [--name NAME]— ホットスポットを更新しますhotspots delete <hotspot_id>— ホットスポットを削除します
passwords
passwords get <device_id>— デバイスのパスワードを取得しますpasswords update <device_id> --password PASSWORD— パスワードを更新しますpasswords update <device_id> --password-stdin— パスワードを更新します(標準入力から読み取り、より安全です)
smtp
smtp list [--limit N] [--offset N]— SMTP 設定を一覧表示しますsmtp get <config_id>— SMTP 設定を取得しますsmtp create --host HOST [--port PORT] [--username USER] [--password PASS]— SMTP 設定を作成しますsmtp update <config_id> [--host HOST] [--port PORT]— SMTP 設定を更新しますsmtp delete <config_id>— SMTP 設定を削除します
auth
auth test— API 接続をテストしますauth status— 現在の認証情報を表示します
config
config set <key> <value>— 設定を変更します(api_token、default_limit)config get [key]— 設定を表示しますconfig delete <key>— 設定を削除しますconfig path— 設定ファイルのパスを表示します
例
# List all online devices
cli-anything-rms devices list --status online
# Get device details as JSON
cli-anything-rms --json devices get 12345
# Check alerts for a specific device
cli-anything-rms alerts list --device 12345
# Interactive mode
cli-anything-rms
コメント
Markdown 対応