Communitygithub.com

cli-anything-rms - Teltonika RMS CLI 工具

针对 Teltonika 远程管理系统(RMS)的命令行工具,通过 REST API 管理路由器、网关和物联网设备。

cli-anything-rms - Teltonika RMS CLI 工具 是什么?

cli-anything-rms 是一个为 Teltonika RMS 设计的命令行工具,通过 RMS REST API 实现设备、公司、用户、标签、警报、配置、远程访问、日志、位置、信用、文件、报告、热点、密码、SMTP 和认证等资源的管理。它支持所有主要 RMS 操作,包括创建、读取、更新和删除(CRUD),并提供交互模式。开发者可以通过设置 `RMS_API_TOKEN` 环境变量或运行 `cli-anything-rms config set api_token <token>` 进行身份验证。该工具可从 GitHub 子目录安装,输出格式支持标准文本和 JSON(使用 `--json` 参数),便于集成到自动化工作流中。对于开发者来说,它简化了大规模设备环境的配置、监控和自动化管理。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-rms

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

cli-anything-rms - Teltonika RMS CLI 工具 是做什么的?

Teltonika RMS(远程管理系统)的 CLI 工具。通过 RMS REST API 管理路由器、网关和物联网设备。

安装

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 — 显示配置文件路径

示例

# 列出所有在线设备
cli-anything-rms devices list --status online

# 以 JSON 格式获取设备详情
cli-anything-rms --json devices get 12345

# 检查特定设备的警报
cli-anything-rms alerts list --device 12345

# 交互模式
cli-anything-rms

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

相关技能