9b395f5cc3
E2E Headed Chrome / e2e-headed (macos-15) (push) Has been cancelled
E2E Headed Chrome / e2e-headed (ubuntu-latest) (push) Has been cancelled
E2E Headed Chrome / e2e-headed (windows-latest) (push) Has been cancelled
CI / build (macos-latest) (push) Has been cancelled
CI / build (ubuntu-latest) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
CI / unit-test (push) Has been cancelled
CI / bun-test (push) Has been cancelled
CI / adapter-test (push) Has been cancelled
CI / smoke-test (macos-latest) (push) Has been cancelled
CI / smoke-test (ubuntu-latest) (push) Has been cancelled
Security Audit / audit (push) Has been cancelled
Build Chrome Extension / build (push) Has been cancelled
Trigger Website Rebuild (Docs Updated) / dispatch (push) Has been cancelled
53 lines
1.1 KiB
Markdown
53 lines
1.1 KiB
Markdown
# 安装
|
|
|
|
## 系统要求
|
|
|
|
- **Node.js**: >= 21.0.0,或 **Bun** >= 1.0
|
|
- **Chrome** 已运行并登录目标网站(浏览器命令需要)
|
|
|
|
## 通过 npm 安装(推荐)
|
|
|
|
```bash
|
|
npm install -g @jackwener/opencli
|
|
```
|
|
|
|
## 从源码安装
|
|
|
|
```bash
|
|
git clone git@github.com:jackwener/opencli.git
|
|
cd opencli
|
|
npm install
|
|
npm run build
|
|
npm link
|
|
opencli list
|
|
```
|
|
|
|
## 更新
|
|
|
|
```bash
|
|
npm install -g @jackwener/opencli@latest
|
|
|
|
# 如果你在用打包发布的 OpenCLI skills,也一起刷新
|
|
npx skills add jackwener/opencli
|
|
```
|
|
|
|
如果你只装了部分 skill,也可以只刷新自己在用的:
|
|
|
|
```bash
|
|
npx skills add jackwener/opencli --skill opencli-adapter-author
|
|
npx skills add jackwener/opencli --skill opencli-autofix
|
|
npx skills add jackwener/opencli --skill opencli-browser
|
|
npx skills add jackwener/opencli --skill opencli-browser-sitemap
|
|
npx skills add jackwener/opencli --skill opencli-sitemap-author
|
|
npx skills add jackwener/opencli --skill opencli-usage
|
|
npx skills add jackwener/opencli --skill smart-search
|
|
```
|
|
|
|
## 验证安装
|
|
|
|
```bash
|
|
opencli --version
|
|
opencli list
|
|
opencli doctor
|
|
```
|