CLI
CLI
弃用通知
此页面描述的功能在 Luxonis Hub 中已被移除或替换。功能可能受限,仅对 Hub Original 客户可用。请参阅最新的指南来配置设备、管理设备组以及部署应用程序。
Command Line
1hubctl [command] [options][command] 替换为下面介绍的可用命令之一,并将 [options] 替换为任何适用的特定于命令的选项。General commands
version - 打印 Luxonis Hub Agent 的版本。示例:Command Line
1$ hubctl version
2Installed agent version: 24.55.1308status - 打印 Luxonis Hub Agent 的状态。示例:Command Line
1$ hubctl status
2╔═══════════════════════════════════════════════════════════════╗
3║ ║
4║ Luxonis Hub Agent (24.55.1308 | linux/arm64 | DepthAI 2.21.2) ║
5║ ║
6╚═══════════════════════════════════════════════════════════════╝
7
8Web UI https://localhost:9010
9DepthAI 2.21.2
10
11Connected to cloud? yes (https://hub.luxonis.com)
12Team Luxonis
13Pending detections 0
14
15Link to robot in cloud
16https://hub.luxonis.com/robots/00000000-0000-0000-0000-000000000000start - 启动 Luxonis Hub Agent。需要 root 权限
示例:Command Line
1$ sudo hubctl startstop - 停止 Luxonis Hub Agent。需要 root 权限
示例:Command Line
1$ sudo hubctl stoprestart - 重启 Luxonis Hub Agent。需要 root 权限
示例:Command Line
1$ sudo hubctl restartstartup - 启用或禁用 Luxonis Hub Agent 在启动时自动运行。参数:enable启用自动运行disable禁用自动运行
Command Line
1$ hubctl startup enablelogs - 显示 Luxonis Hub Agent 的日志。选项:-f,--follow不终止,继续跟踪日志 (默认: false)-a,--all打印所有可用日志 (考虑通过管道输送到less) (默认: false)-l,--last <lines>打印多少行 (从末尾开始) (默认: "20")--since <linux date>过滤自此日期起--until <linux date>过滤至此日期止--format <json|pretty|plain>选择日志格式 (默认: "pretty")
Command Line
1$ hubctl logs
263 23:05:28 I user/agent/hub-connection : received see_you
363 23:05:31 I user/agent/apps/logs : uploading app logs to RH | pending -> 0
463 23:05:36 I user/agent/apps/logs : uploading app logs to RH | pending -> 0
563 23:05:41 I user/agent/apps/logs : uploading app logs to RH | pending -> 0upload-support - 将支持文件上传到 Luxonis。 请将最后打印的哈希值提供给我们的支持团队。示例:Command Line
1$ hubctl upload-support
2File has been uploaded with hash: f0a83c01bc4c7c7f0bd466d6cca2ec9071f8c267e6e65385f744e94f1caa734dreset - 将 Luxonis Hub Agent 重置到安装后的状态。需要 root 权限
示例:Command Line
1$ sudo hubctl reset --i-understand-consequences --keep-robot-in-cloudCloud commands
cloud connect - 将 Luxonis Hub Agent 连接到 Luxonis Hub。示例:Command Line
1$ hubctl cloud connect
2Already connected to cloud (team Luxonis). Disconnect first to connect again.
3hubctl cloud disconnectcloud disconnect - 断开 Luxonis Hub Agent 与 Luxonis Hub 的连接。示例:Command Line
1$ hubctl cloud disconnectcloud force-sync - 强制与 Luxonis Hub 进行手动同步。示例:Command Line
1$ hubctl cloud force-syncDevices commands
devices - 显示连接到 Luxonis Hub Agent 的设备列表。示例:Command Line
1$ hubctl devices
2┌────────────────────┬────────────────────┬───────────────────────┬──────────┬─────────┬──────────────────┬──────┐
3│ serial │ name │ product │ location │ status │ connectionStatus │ app │
4├────────────────────┼───── ───────────────┼───────────────────────┼──────────┼─────────┼──────────────────┼──────┤
5│ 18443010116C870E00 │ 18443010116C870E00 │ OAK-D-PRO-FF (DM9098) │ USB 2.1 │ success │ ready │ none │
6└────────────────────┴────────────────────┴──── ───────────────────┴──────────┴─────────┴──────────────────┴──────┘Apps commands
apps list - 显示已安装应用程序的列表。示例:Command Line
1$ hubctl apps list
2┌──────────────────────────────────────┬─────────┬─────────┬──────────────────────────┬────────────┐
3│ id │ type │ status │ started at │ stopped at │
4├──────────────────────────────────────┼─────────┼─────────┼──────────────────────────┼────────────┤
5│ bfeb4f73-f503-458a-8c24-b88258f9523a │ builtin │ Running │ 2024-03-01T08:15:33.282Z │ │
6└──────────────────────────────────────┴─────────┴─────────┴──────────────────────────┴────────────┘