Upgrade notion-cli to Notion API 2025-09-03#1
Merged
Conversation
Migrate the CLI from the legacy Notion API (2022-02-22) to the current 2025-09-03 collection. This is a significant expansion that adds full coverage of the Notion API. Key changes: - Upgrade Notion-Version header from 2022-02-22 to 2025-09-03 - Add new commands: block, comment, datasource, file, user, docs, auth-internal, auth-public, integration - Add generated API clients for all new endpoints (blocks CRUD, comments, data sources, file uploads, OAuth, pages CRUD, users) - Expand existing page/database commands with create, update, archive, move, and property retrieval - Add CI workflow (.github/workflows/notion-cli.yml) - Add comprehensive tests for all commands - Update README with full command reference and documentation - Add UPGRADE.md tracking the API migration details
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
block,comment,datasource,file,user,docs,auth-internal,auth-public,integrationTest plan
npx tsx cli.ts --helpand verify all new commands appearpage get,database get,search) against a live Notion workspaceblock get,user list,comment list, etc.) against a live workspacenpx vitestto execute the test suite