@andrzejchm/notion-cli 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -37,7 +37,7 @@ Fetch and follow instructions from https://raw.githubusercontent.com/andrzejchm/
37
37
  - **`notion db query`** — filter, sort, and select columns from any database
38
38
  - **`notion append`** — append markdown content to an existing page
39
39
  - **`notion create-page`** — create a new page with markdown body, prints URL to stdout
40
- - **`notion comment`** — add a comment to a page
40
+ - **`notion comment`** — add a comment to a page, block, or discussion thread
41
41
  - **Agent-friendly** — plain text tables by default; `--json` for machine-readable output
42
42
  - **Flexible auth** — interactive setup or `NOTION_API_TOKEN` env var
43
43
  - **Accepts URLs** — pass full Notion URLs anywhere an ID is expected
@@ -70,6 +70,12 @@ my-summarize-command | notion create-page --parent "$PAGE_ID" --title "Auto Summ
70
70
  # Add a comment to a page
71
71
  notion comment "$PAGE_ID" -m "Reviewed and approved."
72
72
 
73
+ # Reply to an existing discussion thread
74
+ notion comment --reply-to "$DISCUSSION_ID" -m "Agreed, let's proceed."
75
+
76
+ # Comment on a specific block
77
+ notion comment --block "$BLOCK_ID" -m "This section needs revision."
78
+
73
79
  # List everything your integration can access
74
80
  notion ls
75
81
  ```
@@ -85,22 +91,32 @@ notion ls
85
91
  | `notion auth status` | Show current auth state |
86
92
  | `notion auth list` | List all saved profiles |
87
93
  | `notion auth use <name>` | Switch the active profile |
88
- | `notion search <query>` | Search pages and databases by title |
89
- | `notion ls` | List all accessible pages and databases |
94
+ | `notion search <query>` | Search pages and databases by title (`--sort asc\|desc`) |
95
+ | `notion ls` | List all accessible pages and databases (`--sort asc\|desc`) |
90
96
  | `notion open <id\|url>` | Open a page in your browser |
91
97
  | `notion read <id\|url>` | Read a page as markdown |
92
98
  | `notion db schema <id\|url>` | Show database property schema and valid values |
93
99
  | `notion db query <id\|url>` | Query database entries with filtering and sorting |
94
100
  | `notion users` | List workspace members |
95
101
  | `notion comments <id\|url>` | Read page comments |
96
- | `notion comment <id\|url> -m <text>` | Add a comment to a page |
102
+ | `notion comment [id\|url] -m <text>` | Add a comment to a page, block, or thread |
97
103
  | `notion append <id\|url> -m <markdown>` | Append markdown blocks to a page |
98
104
  | `notion edit-page <id\|url> --find <old> --replace <new>` | Search-and-replace text on a page |
99
105
  | `notion edit-page <id\|url> -m <markdown>` | Replace entire page content |
100
106
  | `notion create-page --parent <id\|url> --title <title>` | Create a new page, prints URL |
101
107
  | `notion update <id\|url> --prop "Name=Value"` | Update properties on a page |
108
+ | `notion archive <id\|url>` | Archive (trash) a page |
102
109
  | `notion completion bash\|zsh\|fish` | Install shell tab completion |
103
110
 
111
+ ### `notion search` / `notion ls` flags
112
+
113
+ | Flag | Example | Description |
114
+ |------|---------|-------------|
115
+ | `--sort` | `--sort desc` | Sort by last edited time (`asc` or `desc`) |
116
+ | `--type` | `--type page` | Filter by object type (`page` or `database`) |
117
+ | `--cursor` | `--cursor <cursor>` | Pagination cursor from a previous `--next` hint |
118
+ | `--json` | `--json` | Force JSON output |
119
+
104
120
  ### `notion db query` flags
105
121
 
106
122
  | Flag | Example | Description |