HERE追踪CLI工具

一个用于HERE Tracking物联网资产追踪API的生产级命令行界面,支持从终端直接追踪设备、管理地理围栏、查看位置轨迹和处理通知。

  • by ktmcp-cli
  • JavaScript
  • 本地部署
  • 更新于
在 GitHub 查看 ktmcp-cli/heretracking

使用说明

“六个月前,每个人都在谈论MCP。我当时想,拧紧MCP。每个MCP作为CLI都会更好。”

— 彼得·斯坦伯格OpenClaw创始人 在YouTube上观看(~2:39:00) | 莱克斯·弗里德曼播客#491

HERE跟踪CLI

生产就绪的命令行界面 这里跟踪 物联网资产跟踪API。直接从您的终端跟踪设备、管理地理围栏、查看位置跟踪和处理通知。

免责声明:这是一个非官方的CLI工具,不隶属于HERE Technologies,也不受其认可或支持。

特性

  • 设备 --列出、获取和创建跟踪设备
  • 痕迹 --查看位置历史记录并发送位置更新
  • 土工围栏 --创建和管理圆形地理围栏
  • 通知 --查看跟踪通知和事件
  • JSON输出 --所有命令支持 --json 用于脚本和管道
  • 彩色输出 --用粉笔清洁、可读的终端输出

为什么选择CLI>MCP

MCP服务器是复杂的、有状态的,需要一个正在运行的服务器进程。CLI是:

  • 更简单 --只是一个你直接调用的二进制文件
  • 可组合 --管道输出至 jq, grep, awk,和其他工具
  • 可编写脚本的 --在shell脚本、CI/CD管道、cron作业中使用
  • 可调试 --看看到底发生了什么 --json 旗帜
  • AI友好 --AI代理可以像MCP一样轻松地调用CLIs,开销更少

安装

npm install -g @ktmcp-cli/heretracking

身份验证设置

从获取您的HERE API密钥 HERE开发者门户.

配置CLI

heretracking config set --api-key YOUR_API_KEY

验证

heretracking config show

命令

配置

heretracking config set --api-key <key>
heretracking config show

设备

# List all devices
heretracking devices list

# Get a specific device
heretracking devices get <device-id>

# Create a new device
heretracking devices create --name "My Tracker" --description "Vehicle tracker"

痕迹(位置历史)

# Get location trace for a device
heretracking traces get <device-id>

# Filter by time range
heretracking traces get <device-id> --after 2024-01-01T00:00:00Z --before 2024-01-31T23:59:59Z

# Send a position update
heretracking traces send <device-id> --lat 52.5200 --lng 13.4050
heretracking traces send <device-id> --lat 52.5200 --lng 13.4050 --alt 34 --accuracy 10

土工围栏

# List geofences
heretracking geofences list

# Get a specific geofence
heretracking geofences get <geofence-id>

# Create a circular geofence
heretracking geofences create \
  --name "Warehouse Zone" \
  --lat 52.5200 \
  --lng 13.4050 \
  --radius 500

通知

# List notifications
heretracking notifications list

# Get a specific notification
heretracking notifications get <notification-id>

JSON输出

所有命令支持 --json 对于机器可读输出:

# Get all devices as JSON
heretracking devices list --json

# Pipe to jq
heretracking traces get <device-id> --json | jq '.[].position'

# Get latest position
heretracking traces get <device-id> --limit 1 --json | jq '.[0]'

贡献

欢迎在 github/ktmcp-cli/异端.

许可证

麻省理工学院——见 许可证 了解详情。


部分 KTMCP-CLI 项目——用简单、可组合的CLI替换MCP。


支持KTMCP

如果您发现此CLI有用,我们将非常感谢您的支持!分享您的经验:

  • 红迪
  • 推特/X
  • 黑客新闻

激励: 能够证明他们的支持/倡导有助于推进KTMCP的用户将优先考虑他们的功能请求和问题。

请注意,这些是真实的账户和真实的社区。真实的提及和真实的推荐会有很长的路要走!

支持这个项目

如果您发现此CLI有用,我们将感谢Reddit、Twitter、Hacker News或Moltbook的支持。请注意,这些是真实的社区账户。能够证明其支持有助于推进KTMCP的贡献者将优先考虑其PR和功能请求。