Loading...
Loading...
Compare original and translation side by side
astrobox-clinpx astrobox-cli <command> [options]pnpm cli <command> # if in AstroBoxCli repoastrobox-clinpx astrobox-cli <command> [options]pnpm cli <command> # if in AstroBoxCli repoopenstatusdeviceproviderprovider pageprovider itemprovider downloadinstall127.0.0.1:10721openstatusdeviceproviderprovider pageprovider itemprovider downloadinstall127.0.0.1:10721| Task | Command |
|---|---|
| Launch AstroBox | |
| Check status | |
| List devices | |
| Show device details | |
| Connect device | |
| List providers | |
| Provider state | |
| Categories | |
| Refresh provider | |
| Total items | |
| Browse page | |
| Search by keyword | |
| Item detail | |
| Download link | |
| Install local file | |
| 任务 | 命令 |
|---|---|
| 启动 AstroBox | |
| 检查状态 | |
| 列出设备 | |
| 查看设备详情 | |
| 连接设备 | |
| 列出资源提供商 | |
| 查看提供商状态 | |
| 查看分类 | |
| 刷新提供商内容 | |
| 查看总资源数 | |
| 浏览指定页码资源 | |
| 按关键词搜索 | |
| 查看资源详情 | |
| 获取下载链接 | |
| 安装本地文件 | |
npx astrobox-cli device list # see existing devices
npx astrobox-cli device connect \
--name "Xiaomi Smart Band 9 Pro C692" \
--addr "3C:AF:B7:ED:C6:92" \
--authkey "your-authkey" # user must tap confirm on device
npx astrobox-cli device show 3C:AF:B7:ED:C6:92 # verifynpx astrobox-cli device list # 查看现有设备
npx astrobox-cli device connect \
--name "Xiaomi Smart Band 9 Pro C692" \
--addr "3C:AF:B7:ED:C6:92" \
--authkey "your-authkey" # 用户需在设备上点击确认
npx astrobox-cli device show 3C:AF:B7:ED:C6:92 # 验证连接npx astrobox-cli provider list # pick provider
npx astrobox-cli provider refresh OfficialV2 # refresh cache before search
npx astrobox-cli provider page OfficialV2 \
--keyword "search-term" --limit 20 # search by keyword
npx astrobox-cli provider item OfficialV2 <id> # inspect details, get device key
npx astrobox-cli provider download OfficialV2 \
--id <id> --device <key> # get download URLnpx astrobox-cli provider list # 选择资源提供商
npx astrobox-cli provider refresh OfficialV2 # 搜索前刷新缓存
npx astrobox-cli provider page OfficialV2 \
--keyword "search-term" --limit 20 # 按关键词搜索
npx astrobox-cli provider item OfficialV2 <id> # 查看详情,获取设备密钥
npx astrobox-cli provider download OfficialV2 \
--id <id> --device <key> # 获取下载URLundefinedundefinedundefinedundefinednpx astrobox-cli status # should show "AstroBox: connected"unavailablenpx astrobox-cli status # 应显示"AstroBox: connected"unavailablereferences/output-parsing.md- <name> (<addr>) [<status>][<restype>] <name>\n id: <id> <field>: <value>references/output-parsing.md- <name> (<addr>) [<status>][<restype>] <name>\n id: <id> <field>: <value>provider refresh <name>--keyword--keywordprovider pagegrep--keyworddevice showdevice show <addr>provider itemDownloads:xmb9pxmb10xmrw5provider download --device <key>npx astrobox-cli install{"ok": true, "message": "queued"}npx astrobox-cliENOTEMPTY~/.npm/_npx/*--keywordprovider refresh <name>--keywordprovider pagegrep--keyworddevice showdevice show <addr>provider itemDownloads:xmb9pxmb10xmrw5provider download --device <key>npx astrobox-cli install{"ok": true, "message": "queued"}npx astrobox-cliENOTEMPTY~/.npm/_npx/*| Error | Meaning | Action |
|---|---|---|
| Desktop app not running | Ask user to launch AstroBox |
| Invalid install path | Verify path |
| Address not in list | Run |
| Wrong type | Only |
references/errors.md| 错误信息 | 含义 | 操作建议 |
|---|---|---|
| 桌面应用未运行 | 请用户启动AstroBox |
| 安装路径无效 | 验证路径正确性 |
| 地址未在列表中 | 先运行 |
| 连接类型错误 | 仅支持 |
references/errors.mdreferences/commands.mdreferences/commands.mdreferences/commands.mdreferences/output-parsing.mdreferences/errors.mdreferences/commands.mdreferences/output-parsing.mdreferences/errors.md