Skip to content

Expand block, page, search, and datasource commands; remove database …#2

Merged
joshed-io merged 2 commits intomainfrom
notion-cli-upgrade-2025-09-03
Feb 16, 2026
Merged

Expand block, page, search, and datasource commands; remove database …#2
joshed-io merged 2 commits intomainfrom
notion-cli-upgrade-2025-09-03

Conversation

@joshed-io
Copy link
Member

Major feature additions across the CLI:

  • block append: support 13 block types (headings, callout, quote, divider, code, bookmark, to_do, lists, table_of_contents) with --type, --color, --icon, --language, --checked flags, plus --json for raw block JSON and stdin piping
  • block update: add --color support with text-preserving color-only updates
  • block children: show block IDs in formatted output for easier targeting
  • page update: add --set for typed property values (rich_text, number, select, multi_select, date, checkbox, url, email, phone_number), --icon for emoji, --cover for external images, with "none" removal support
  • page get --raw: return { page, blocks } instead of just blocks
  • search: add --direction sort, --sort-by field, --raw output, and handle data_source objects in results
  • datasource update: add --add-property and --remove-property for schema management with select/multi_select option pre-population

Remove database list command — the 2025-09-03 API moves entries to data sources, so users are directed to datasource query instead.

Update docs command, README, and types. Add comprehensive tests for all new features including error validation.

…list

Major feature additions across the CLI:

- block append: support 13 block types (headings, callout, quote, divider,
  code, bookmark, to_do, lists, table_of_contents) with --type, --color,
  --icon, --language, --checked flags, plus --json for raw block JSON and
  stdin piping
- block update: add --color support with text-preserving color-only updates
- block children: show block IDs in formatted output for easier targeting
- page update: add --set for typed property values (rich_text, number,
  select, multi_select, date, checkbox, url, email, phone_number), --icon
  for emoji, --cover for external images, with "none" removal support
- page get --raw: return { page, blocks } instead of just blocks
- search: add --direction sort, --sort-by field, --raw output, and handle
  data_source objects in results
- datasource update: add --add-property and --remove-property for schema
  management with select/multi_select option pre-population

Remove database list command — the 2025-09-03 API moves entries to data
sources, so users are directed to datasource query instead.

Update docs command, README, and types. Add comprehensive tests for all
new features including error validation.
@joshed-io joshed-io merged commit 8cd0923 into main Feb 16, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant