cli-anything-rms

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

cli-anything-rms

cli-anything-rms

CLI harness for Teltonika RMS (Remote Management System). Manage routers, gateways, and IoT devices via the RMS REST API.
用于Teltonika RMS(远程管理系统)的CLI工具。通过RMS REST API管理路由器、网关和IoT设备。

Installation

安装

bash
pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=rms/agent-harness
bash
pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=rms/agent-harness

Authentication

身份验证

Set
RMS_API_TOKEN
environment variable or run
cli-anything-rms config set api_token <token>
.
设置
RMS_API_TOKEN
环境变量,或运行
cli-anything-rms config set api_token <token>

Command Groups

命令组

devices

devices

  • devices list [--status online|offline] [--tag TAG] [--limit N] [--offset N] [--sort FIELD]
    — List devices
  • devices get <device_id>
    — Get device details
  • devices update <device_id> [--name NAME] [--tag TAG]
    — Update device
  • devices delete <device_id>
    — Delete device
  • 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

  • companies list [--limit N] [--offset N]
    — List companies
  • companies get <company_id>
    — Get company details
  • companies create --name NAME
    — Create company
  • companies update <company_id> [--name NAME]
    — Update company
  • companies delete <company_id>
    — Delete company
  • 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

  • users list [--limit N] [--offset N]
    — List users
  • users get <user_id>
    — Get user details
  • users invite --email EMAIL [--role ROLE]
    — Invite user
  • users update <user_id> [--role ROLE]
    — Update user
  • users delete <user_id>
    — Delete user
  • 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

  • tags list [--limit N] [--offset N]
    — List tags
  • tags get <tag_id>
    — Get tag details
  • tags create --name NAME
    — Create tag
  • tags update <tag_id> [--name NAME]
    — Update tag
  • tags delete <tag_id>
    — Delete tag
  • 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

  • alerts list [--device DEVICE_ID] [--limit N] [--offset N]
    — List alerts
  • alerts get <alert_id>
    — Get alert details
  • alerts delete <alert_id>
    — Delete alert
  • alerts configs list
    — List alert configurations
  • alerts configs get <config_id>
    — Get alert config
  • alerts configs create --data JSON
    — Create alert config
  • alerts configs update <config_id> --data JSON
    — Update alert config
  • alerts configs delete <config_id>
    — Delete alert config
  • 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

  • configs list [--device DEVICE_ID] [--limit N] [--offset N]
    — List device configurations
  • configs get <config_id>
    — Get configuration
  • configs update <config_id> --data JSON
    — Update configuration
  • configs list [--device DEVICE_ID] [--limit N] [--offset N]
    — 列出设备配置
  • configs get <config_id>
    — 获取配置详情
  • configs update <config_id> --data JSON
    — 更新配置

remote-access

remote-access

  • remote-access list [--device DEVICE_ID] [--limit N]
    — List sessions
  • remote-access get <session_id>
    — Get session details
  • remote-access create --device DEVICE_ID [--protocol PROTO] [--port PORT]
    — Create session
  • remote-access delete <session_id>
    — Delete session
  • 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

  • logs list [--device DEVICE_ID] [--limit N] [--offset N]
    — List logs
  • logs get <log_id>
    — Get log details
  • logs delete <log_id>
    — Delete log
  • logs list [--device DEVICE_ID] [--limit N] [--offset N]
    — 列出日志
  • logs get <log_id>
    — 获取日志详情
  • logs delete <log_id>
    — 删除日志

location

location

  • location get <device_id>
    — Get current device location
  • location history <device_id> [--limit N] [--offset N]
    — Location history
  • location get <device_id>
    — 获取设备当前位置
  • location history <device_id> [--limit N] [--offset N]
    — 获取设备位置历史

credits

credits

  • credits list [--limit N] [--offset N]
    — List credits
  • credits transfer --code CODE
    — Transfer credits
  • credits codes [--limit N]
    — List transfer codes
  • credits list [--limit N] [--offset N]
    — 列出积分
  • credits transfer --code CODE
    — 转移积分
  • credits codes [--limit N]
    — 列出转移码

files

files

  • files list [--limit N] [--offset N]
    — List files
  • files get <file_id>
    — Get file details
  • files upload <file_path>
    — Upload file
  • files delete <file_id>
    — Delete file
  • files list [--limit N] [--offset N]
    — 列出文件
  • files get <file_id>
    — 获取文件详情
  • files upload <file_path>
    — 上传文件
  • files delete <file_id>
    — 删除文件

reports

reports

  • reports list [--limit N] [--offset N]
    — List reports
  • reports get <report_id>
    — Get report
  • reports create --template TEMPLATE_ID [--name NAME]
    — Create report
  • reports delete <report_id>
    — Delete report
  • reports templates list
    — List report templates
  • 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

  • hotspots list [--device DEVICE_ID] [--limit N]
    — List hotspots
  • hotspots get <hotspot_id>
    — Get hotspot details
  • hotspots create --device DEVICE_ID --name NAME
    — Create hotspot
  • hotspots update <hotspot_id> [--name NAME]
    — Update hotspot
  • hotspots delete <hotspot_id>
    — Delete hotspot
  • 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

  • passwords get <device_id>
    — Get device password
  • passwords update <device_id> --password PASSWORD
    — Update password
  • passwords update <device_id> --password-stdin
    — Update password (reads from stdin, safer)
  • passwords get <device_id>
    — 获取设备密码
  • passwords update <device_id> --password PASSWORD
    — 更新设备密码
  • passwords update <device_id> --password-stdin
    — 更新设备密码(从标准输入读取,更安全)

smtp

smtp

  • smtp list [--limit N] [--offset N]
    — List SMTP configs
  • smtp get <config_id>
    — Get SMTP config
  • smtp create --host HOST [--port PORT] [--username USER] [--password PASS]
    — Create SMTP config
  • smtp update <config_id> [--host HOST] [--port PORT]
    — Update SMTP config
  • smtp delete <config_id>
    — Delete SMTP config
  • 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

  • auth test
    — Test API connectivity
  • auth status
    — Show current auth info
  • auth test
    — 测试API连接性
  • auth status
    — 显示当前身份验证信息

config

config

  • config set <key> <value>
    — Set configuration (api_token, default_limit)
  • config get [key]
    — Show configuration
  • config delete <key>
    — Delete configuration
  • config path
    — Show config file path
  • config set <key> <value>
    — 设置配置项(api_token、default_limit)
  • config get [key]
    — 显示配置信息
  • config delete <key>
    — 删除配置项
  • config path
    — 显示配置文件路径

Examples

示例

bash
undefined
bash
undefined

List all online devices

列出所有在线设备

cli-anything-rms devices list --status online
cli-anything-rms devices list --status online

Get device details as JSON

以JSON格式获取设备详情

cli-anything-rms --json devices get 12345
cli-anything-rms --json devices get 12345

Check alerts for a specific device

检查指定设备的告警

cli-anything-rms alerts list --device 12345
cli-anything-rms alerts list --device 12345

Interactive mode

交互模式

cli-anything-rms
undefined
cli-anything-rms
undefined