> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apiyi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 新增 FAQ：终端提示找不到 apiyi 命令怎么办

> 用 npx apiyi@latest 跑完自检后直接敲 apiyi 会报 command not found，因为 npx 是临时运行、不会安装命令。新增 FAQ 讲清三种用法；CLI 0.2.2 起提示里直接给出完整写法。

**2026/10/15 00:15 (UTC+8)** · 文档更新

📚 **跑完 `npx apiyi@latest check` 再敲 `apiyi` 报 command not found？后续命令要带上 `npx apiyi@latest` 前缀**

`npx` 是临时下载运行，不会在电脑上安装 `apiyi` 命令。保存 Key 应写成 `npx apiyi@latest auth set-key`；想直接用 `apiyi`，先 `npm i -g apiyi` 全局安装一次。

CLI 0.2.2 起，通过 npx 运行时提示里会直接给出完整写法，`--help` 也会说明。详见 [终端提示找不到 apiyi 命令怎么办？](/faq/apiyi-cli-command-not-found)

***

← [返回实时动态](/live) · 📚 [按月归档](/live/archive)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.