mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
31f58ae699
- Add VitePress with full navigation, sidebar, i18n (en/zh), local search - Create 50+ doc pages: guide, adapters (browser + desktop), developer, advanced - Migrate content from README.md, CONTRIBUTING.md, TESTING.md, CDP.md, CLI-ELECTRON.md - Migrate all 11 adapter READMEs to structured documentation - Add new pages: architecture, yaml-adapter guide, ts-adapter guide, ai-workflow - Add GitHub Actions workflow for deploying to GitHub Pages - Add Chinese locale pages (getting-started, installation, browser-bridge, etc.) - Add docs:dev, docs:build, docs:preview npm scripts
38 lines
640 B
Markdown
38 lines
640 B
Markdown
# Installation
|
|
|
|
## Requirements
|
|
|
|
- **Node.js**: >= 20.0.0
|
|
- **Chrome** running and logged into the target site (for browser commands)
|
|
|
|
## Install via npm (Recommended)
|
|
|
|
```bash
|
|
npm install -g @jackwener/opencli
|
|
```
|
|
|
|
## Install from Source
|
|
|
|
```bash
|
|
git clone git@github.com:jackwener/opencli.git
|
|
cd opencli
|
|
npm install
|
|
npm run build
|
|
npm link # Link binary globally
|
|
opencli list # Now you can use it anywhere!
|
|
```
|
|
|
|
## Update
|
|
|
|
```bash
|
|
npm install -g @jackwener/opencli@latest
|
|
```
|
|
|
|
## Verify Installation
|
|
|
|
```bash
|
|
opencli --version # Check version
|
|
opencli list # List all commands
|
|
opencli doctor # Diagnose connectivity
|
|
```
|