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