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
30 lines
868 B
Markdown
30 lines
868 B
Markdown
# Notion
|
|
|
|
Control the **Notion Desktop App** from the terminal via Chrome DevTools Protocol (CDP).
|
|
|
|
## Prerequisites
|
|
|
|
Launch with remote debugging port:
|
|
```bash
|
|
/Applications/Notion.app/Contents/MacOS/Notion --remote-debugging-port=9230
|
|
```
|
|
|
|
## Setup
|
|
|
|
```bash
|
|
export OPENCLI_CDP_ENDPOINT="http://127.0.0.1:9230"
|
|
```
|
|
|
|
## Commands
|
|
|
|
| Command | Description |
|
|
|---------|-------------|
|
|
| `opencli notion status` | Check CDP connection |
|
|
| `opencli notion search "query"` | Quick Find search (Cmd+P) |
|
|
| `opencli notion read` | Read the current page content |
|
|
| `opencli notion new "title"` | Create a new page (Cmd+N) |
|
|
| `opencli notion write "text"` | Append text to the current page |
|
|
| `opencli notion sidebar` | List pages from the sidebar |
|
|
| `opencli notion favorites` | List pages from the Favorites section |
|
|
| `opencli notion export` | Export page as Markdown |
|