mcpField
C
cli-anything-rms

cli-anything-rms

github.com/hkudsクラウド・DevOps57.6k459 回インストール5 週間前に更新
リポジトリ

cli-anything-rms について

cli-anything-rmsは、Teltonika RMSのREST APIを介してデバイスやアカウント関連のリソースを管理するコマンドラインツールです。ルーター、ゲートウェイ、IoTデバイスの運用担当者向けに、管理、監視、設定のコマンドを提供します。

主な機能

  1. 01デバイス、企業、ユーザーの管理
  2. 02アラートと設定の作成・管理
  3. 03リモートアクセスセッションの制御
  4. 04ログとデバイス位置の確認
  5. 05ファイル、レポート、ホットスポット、クレジットの管理

活用シーン

  1. 01オンライン状態やタグでデバイスを一覧表示
  2. 02デバイスのアラートとログを確認
  3. 03リモートアクセスセッションを作成
  4. 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

コメント