Documents and filesNotion
Notion CLI changelog
See released Notion CLI features: sign-in, live reading, local copy, sync and search.
Notable changes to @wirecat/notion-cli. One section per version, newest first.
0.12.0 — 29.11.2026
Added
- WireCat Desktop reads the MCP port and the sign-in from notion itself. The manifest (
notion --wcat-describe) now names the fixed MCP port 8762 and the token sign-in, with the token passed inWCNOTION_TOKENor on stdin. Desktop reads them from the tool and keeps its own list only as a fallback. Built on cli-base 1.2.0.
Fixed
- notion's package is smaller: it no longer carries its own copy of cli-core. Built on @wirecat/cli-core 3.0.0 and @wirecat/cli-base 2.1.1. Needed for the WireCat store version 79 (memo became wcat).
0.11.0 — 27.11.2026
Changed — may break callers
- Built on cli-core 2.0.0. It brings store version 78: the store calls AI agents
agent(agent:<id>,type: "agent") where it saidbot, andbot:<id>now names a sender bot. Once a 2.0 tool opens the store, a 1.x tool refuses it, so upgrade every WireCat CLI together. notion's own commands and their JSON do not change.
0.10.0 — 26.11.2026
Changed — may break callers
session start | status | end | listare cli-core's shared session commands now (cli-core 1.3.0). A profile signed in before keeps its token, with no new sign-in: the keyring entry is the same.session listgives each row astate(saved,missingorunknown). A profile whose sign-in cannot be read, such as a keyring this run cannot reach, is listed withsigned_in: nullandstate: "unknown"and a warning, where the whole list failed before.session status --checkrefuses an offline run first, assession startdoes.- Built on cli-core 1.3.0.
0.9.0 — 25.11.2026
Added
- Keep a local folder of Markdown files and Notion pages the same, both ways.
mirrors add <page> <folder>pairs a folder with the pages under one Notion page: each page is a file named after its title, and the pages under it are in a folder of the same name.mirrors synccopies each change to the other side. A deletion goes to the other side's trash, and only a page in Notion's trash counts as deleted. Every overwrite keeps the earlier text forkeep_versions_for_days(365 by default). A file changed on both sides is merged line by line, or listed formirrors conflicts resolve.mirrors preview,status,watch,update,removeandversions list|restoreare there too. These are cli-core's shared commands, the same as in ydisk. See usage.
Changed — may break callers
- Built on cli-core 1.0.0 and cli-base 1.0.0. The generated API files read their types from
@wirecat/cli-base/codegen/runtime, and the store types from@wirecat/cli-core/store/areas. Store version 73 comes with cli-core 1.0: once a 1.0 tool opens the store, a 0.x tool refuses it, so upgrade every WireCat CLI together. - Over MCP, a call that names a credential file or a WireCat folder now answers
permission_error(access.denied), checked by cli-core before the command runs. It answeredvalidation_errorbefore.
Fixed
- The text
documents updatereplaces is kept as long as synced versions. It stayed 30 days. It now follows the profile'skeep_versions_for_days, 365 days by default, the same period asdocuments history. - A scheduled agent reads other people's Notion text marked. In a run locked read-only with a mark
(
WCNOTION_READ_ONLY=1andWCNOTION_UNTRUSTED_MARK),documents getmarks the page's Markdown,folders browsethe names,databases list|showthe titles, descriptions, property names, select options and template names,rows listthe row titles,comments listthe comment text and its author, and theapigroup's operations every string in the raw answer, its keys left as they are. cli-core's shared commands already marked theirs,mirrors previewandmirrors conflicts list|showamong them. Outside such a run no answer changes. A marked property name is passed back torows list --filterwithout the markers. Not marked yet: the values inrows list'sproperties, whose keys differ in each database. - A
--rescanremoves a page or row found in Notion's trash as deleted. A full walk that read a held page or row directly and found it in the trash left it out, so it stayed as no longer visible with its text kept. It now leaves as deleted, as the change feed already did. A page Notion no longer finds stays as no longer visible. What was under a page or database in the trash is not read, and leaves as no longer visible, as before.
0.8.0 — 23.11.2026
Added
- A page's text edited in place, at the version an agent read.
documents getanswerssha256, anddocuments check <page> --expected-fingerprint <sha256>says whether the page changed since.documents update <page> --payload '[{"old": "Due Friday", "new": "Due Monday"}]' --expected-fingerprint <sha256>changes only those parts, with Notion'supdate_content. A whole--textor--filetakes--expected-fingerprinttoo. The page is read again just before the write, and the write is refused when it changed (mirror.remote-changed). Notion has no conditional write, so an edit landing after that read is not caught. A part whose old text is not on the page once is refused with nothing sent, and a part Notion still reports as not matched makes the answer incomplete. Why: an agent could only rewrite a whole page, over anyone's newer edit (docs/dev/DESIGN.md). - Every text write keeps the text it replaced. The profile's local versions hold it, and the answer names it
(
replaced.sha256,replaced.kept_at). - Earlier versions of every synced page, and a change log.
documents history <page>lists the versions the syncs kept, and--revision <n>shows one.changes --since 1dlists the pages added, changed, deleted or no longer visible.keep_versions_for_days(365 by default) sets how long they are kept. Both are local reads, so an agent gets them over MCP too (docs/dev/SYNC.md). - Notion AI meeting notes in WireCat's meetings.
notion <profile> meetings synccopies the meeting notes of the meetings the token's user attended, with attendees, the AI summary, the notes and the transcript, into the shared store beside Zoom calls.meetings list,show,transcript,summary,exportandpeopleread them offline, andsearch allfinds them. A summary Notion writes after the meeting is read at the next sync. Notion documents no line format for a transcript, so its lines are kept as written, with no speaker or time. Why: the owner's meetings in Notion were not with the others (docs/dev/DESIGN.md). - A database row is created and changed with typed values.
documents create --into <database>adds a row with--titleand--field Name=Value. Each value is checked against the database's properties and sent as its type takes it: text, number, select, status, multi-select, date or range, checkbox, link, email, phone, people and relations. A person is an email address, a user id orme.--from-template default, a template's id or its name fills the row from a template, and the answer saystemplate_pending: true, since Notion adds the template's text after it answers.documents update <row> --field Status=Donechanges the values named and keeps the rest.rows list <database> --filter Status=Open --filter "Due<2026-12-01"lists rows live with their values.databases shownow lists each data source's templates. Why: an agent could add a task to a Notion database only through rawapicalls, with no check of its values (docs/dev/DESIGN.md). notion <profile> documents moveanddocuments renamefile and name pages.moveputs a page under another page (--parent) or into a database (--into).renamesets the title of a page or a row.documents update --emojiand--coverset the icon and the cover, or take them away withnone. Why: moving a page needed a rawapicall (docs/dev/DESIGN.md).- Comments are in the local copy and in search, and the connection's own comments can be fixed. The sync reads a
page's open comments with its text and adds them to the page's searchable text, never to its Markdown. A page
synced before this version is read once more to add them. A connection without the "Read comments" capability
gets one warning and the rest of the sync goes on.
comments editandcomments deletechange or delete a comment this connection posted. Notion keeps no deleted comment, socomments deleteasks first, asdocuments deletedoes, and both answer the comment's earlier text inprevious_text(docs/dev/SYNC.md).
Changed — may break callers
- Uses
@wirecat/cli-core0.724.0 and@wirecat/cli-base0.130.0, whose vocabulary has the words of the sharedchangescommand and thesummaryandpeopleviews of the shared meetings commands.
Fixed
- A page answered with 404 is no longer visible, not deleted. Notion gives a 404 for a deleted page and for one no longer shared with the connection. Such a page leaves lists and search, keeps its text in the local copy, and comes back as it was when Notion shows it again. Only a page in Notion's trash counts as deleted.
- cli-core 0.720.0 (was 0.718.0), cli-base 0.126.1 (was 0.125.0).
0.7.0 — 21.11.2026
Added
wirecat.config.tsdescribes the sync's source. The config names the account, every Notion call the sync sends, the API version and both paces. cli-core reads the calls through the same request path asnotion api. Before, these were code over Notion's SDK. A page synced before authors were saved is now read again by cli-core's engine, at most 50 a sync, not through a marked version. The same pages are read, with the same limits. One error changed: a token whose answer names no workspace now fails with cli-core'ssource.no-account, notnotion.no-workspace. Why: attio and linear already build their sources from a config, and a new documents CLI can now do the same (docs/dev/SYNC.md).
0.6.0 — 19.11.2026
Added
notion <profile> account removesigns a profile out and forgets it on this computer. It forgets the Notion token, the profile's settings, its chosen pages and its sync checkpoint.--keep-dataleaves the copied pages in the store, where search still finds them;--delete-datadeletes them. It asks first, or takes--yes;--dry-runlists what it would remove. Why: WireCat Desktop removes an account with this command, and notion could only sign out withsession end. The token itself stays valid at Notion: revoke it on Notion's integrations page.
Changed — may break callers
- The MCP Registry entry asks which profiles to serve. It started
mcp serve --profiles all, so a client that installed the server from the registry reached every account on the computer without the owner choosing. Now--profilesis a required argument with the examplepersonal: the client asks for one profile, a comma-separated list orall. Why: a CLI never picks an account for the owner (WC-MCP-9). Watch for: a client set up from the old entry keeps--profiles alluntil it is set up again; a server added by hand or withmcp configdoes not change.
Fixed
- Pages synced before 0.5.0 get their authors and last editors as people without a rescan. A plain
syncnow reads such pages again, 50 a run, and links them to the people who wrote and last edited them. It also does this for pages read before the connection could read email addresses, once a sync has seen that it can. It reads no other page again. Before, a page got its people only once someone edited it. - A first sync reads each Notion page once instead of three times. The walk asked Notion for each page's kind, and every page read asked again for its parent page. notion now keeps what one run has already seen, also from the walk and the plan an earlier run saved. A page with 60 pages under it took 182 page requests and now takes 61, which counts under Notion's limit of about three requests a second.
apiis cli-core's shared group, as in attio, linear and hubspot. The commands, their names and their keys stay the same: each write asks or refuses byapi.<operation>, and a call that deletes, by its method or its body, also bydocuments.delete. Which calls delete now comes from the generated manifest, plus four body rules notion keeps itself. A fix to the group in cli-core now reaches notion with a version bump.- cli-core 0.707.0 (was 0.687.0), cli-base 0.124.0 (was 0.109.0).
0.5.0 — 17.11.2026
Fixed
- A search hit from Notion names
notionand the profile.memo searchandsearch allshowed a Notion page asprovider: noteswith the store's account number, and the tree label showed raw ids, because notion never said which account its profile is. A sync now records it through cli-core's documents engine. - The workspace root and databases stay out of search. They are catalog entries, not pages: word search, meaning
search and memo's digest showed them with an empty excerpt, and
documents showcould not open them. - An agent's
relationships addis saved. It is written unconfirmed for the owner, who confirms it by adding the same relationship or rejects it by removing it. It used to write nothing. - A sync cut inside Notion's own pass says to sync again. When a slow listing reached the deadline, its cursor
waited on the sync's pending plan, where notion did not look: the answer said
complete: falsewith no step to run next, andstatusgave a total as if the pass were planned. notion now reads that cursor too. - cli-core 0.687.0 (was 0.680.0), cli-base 0.109.0 (was 0.106.0).
- Sync now saves a page's creator and last editor as people in the shared store, with their names and email addresses
from Notion, and links the page to them as
ownerandlast-editor. An email address joins them to the person who already has it, so a person's context shows the Notion pages they wrote or edited. This needs the connection's capability to read user information including email addresses; without it the authors are kept by Notion id, andsyncanddoctorsay so. A page synced before this gets its authors when it next changes. identities link <page> <notion-id> person:<uid>works: it no longer fails because the Notion user was not in the store, and it moves every synced page's link from that user to the person.
0.4.0 — 16.11.2026
Added
comments list,comments createandcomments replyread and write the comments on a Notion page, live.comments listshows only unresolved comments, as Notion's API gives no others. A comment's text never reaches a run record. See Comments and files.files upload <file> --parent <page>uploads a file and adds it to the end of a page as an image, video, audio, PDF or file block. A file over 20 MB goes in parts of 10 MB. Only a regular file is sent, as with--file.- Each write checks its own permission (
comments.create,files.upload) and theapioperations it sends, and takes--dry-run.
Changed — may break callers
folders browsepages:--limit(100 by default) and--cursorfrompage.next_cursor. At the top of the workspace it reads Notion's search one page at a time instead of all of it, so a large workspace answers within a minute. Each item now says where it sits (parent, null at the top) and whether sync already copies it asadded, the field drive'sfolders browseuses, in place ofchosen. A database lists nothing inside, as its rows are not folders. When Notion's search was cut at 10,000 results, the answer says so inmissing.
Fixed
- On Windows,
files uploadand--filerefuse a link to a file too. Windows has noO_NOFOLLOW, so the link was followed there.
0.3.0 — 16.11.2026
Added
documents create,documents update,documents deleteanddocuments restorewrite Notion pages.createmakes a page under another page from Markdown,updatereplaces a page's text,deletemoves a page to Notion's trash and asks first, andrestorebrings it back. An update that would delete a child page or database is refused unless--allow-deleting-contentis given, and then it asks as a delete does. Every write goes through the profile's permissions and the write journal, answers with anoperation_id, and is previewed with--dry-run. A rawapicall that deletes, trashes, erases or archives content, or removes a database property, now asks asdocuments deletedoes, sodocuments.deleteset todenystops it too, also for anagent-batchcall with a delete in it.--filereads only a regular file, never a link, one under/proc,/sysor/dev, nor a credential file. See Writes.
Fixed
- The install page shows how to sign in with
session start. bin/notion-livereads the token from the keyring service thatNOTION_LIVE_KEYRING_SERVICEnames. When it is unset, the service staysnotion-live.- A plain
syncremoves the rows of a data source that was taken out of its database. Before, they stayed in the local copy untilsync --rescan. When Notion will not show the database (403), the rows stay.
Security
- cli-core 0.680.0 and cli-base 0.106.0. cli-core now refuses files under
/proc,/sysand/devitself, so--fileuses its check instead of notion's own.--filestill opens the file once, never through a link, and checks the file it opened.
0.2.0 — 16.11.2026
Added
notion <profile> synccopies Notion pages, pages under pages, databases and their rows into WireCat's shared store, under providernotion. Without a chosen folder it copies everything the token sees.--limitbounds one run and--rescanwalks everything again. A page or database Notion would not give is named inmeta.issuesand in the answer'swarnings, and the answer saysmeta.complete: falseand exits 0. A walk too long for one run stops in time and the next sync goes on; there is no cap on the chosen folders' size. A block inside a page whose children Notion will not give (a synced block whose original is not shared) is skipped with a warning. A page or database Notion answers 403 for is kept as it was; only a 404 or the trash removes it. A block Notion refuses in a page's Markdown, or a data source it will not query, is left out with a warning and the rest syncs. See the sync.- A sync runs up to 15 minutes in a terminal and 45 seconds over MCP, unless
--timeoutsets another time (cli-core 0.671.0). It stops before its deadline, in the hourly pass and the daily walk alike, one request at a time: it saves where it stopped, answerscomplete: falseand namessyncas the next step. A page's child pages come from its listing, 100 a request. A--timeouttoo short to keep anything fails withtimeoutand reasonnotion.timeout-too-short. See the sync. - One Notion connection is one profile:
session startandsyncrefuse a connection another signed-in profile uses, and a profile synced from one connection refuses a token of another. A profile signed in byWCNOTION_TOKENcounts too. See sign-in. - Pages under pages, and a page as a chosen folder, now sync: 0.1.0 said they were not done yet.
folders add|list|browse|removenarrow the sync to chosen pages and databases.folders browselists one level live from Notion. Removing the last folder says that the next sync copies the whole workspace again. Over MCP,folders addgoes through the write tool.status,documents list|show|export|context|add,search(Lucene syntax, offline),catalog,tags,relationships,notes,memories,factsandidentities: cli-core's shared documents commands over the local copy.documents addkeeps one page, read live, among the sources added by hand.
Fixed
- A first sync of a big database, or of a page with many children, moves on in every run, also over MCP's 45 seconds:
the sync lists a folder a page at a time and goes on where it stopped (cli-core's
childrenPage). Before, a database of more than about 12,000 rows stopped the first sync over MCP at the same step every run. See the sync. - Database queries keep to Notion's documented limit of about 3 requests a second, not 60 a minute. See the design.
folders browse --parentand the synced copy give a page under a page its link, in Notion's own formhttps://app.notion.com/p/{page-id}, instead of an emptyurl. See the sync.
0.1.0 — 15.11.2026
Added
- Started from
@wirecat/cli-template0.24.0. api: the whole public Notion API, one command per operation. The 61 operations of Notion's OpenAPI document are commands,notion personal api retrieve-a-page --page-id …, each with its own permission key,api.<operation>.api listandapi show <operation>read the saved document without calling Notion. Every request carriesNotion-Version2026-03-11, so no command asks for it. An operation that deletes asks first at a terminal; over MCPaskgoes ahead, so set its key todenyto stop an agent.--dry-runsends nothing. The OAuth token operations and the two file uploads are not offered: the first sign in with the connection's client secret and carry tokens, the second send multipart bodies. The checks accept slightly more than Notion does: any JSON value is untyped, and three bounds (exclusiveMinimum,exclusiveMaximum,maxProperties) are dropped in six places, so Notion itself refuses what breaks them. Coverage.session start | status | end | listwith a Notion personal access token or an internal connection's token, checked with Notion and kept in the keyring astoken:<profile>; the account is the workspace and the token's bot.documents getreads one page live as Markdown, fills a long page's missing parts, and cuts the signature from Notion's signed file links. A page that is still not whole answersmeta.complete: falseand exits non-zero.databases listanddatabases show: the databases the token sees, and each data source's id and properties.- Requests are paced below Notion's limit, with a slower pace for data source queries, and a refused request is
waited out for Notion's
Retry-After; a connection Notion has blocked is not retried. - The environment variables start with
WCNOTION_(WCNOTION_TOKEN,WCNOTION_PROFILE), notNOTION_: Notion's own MCP server readsNOTION_TOKEN, and a token set for it must not sign this tool in. - An incremental sync source for Notion, ready for cli-core's sync engine: it reads changes since a time mark with an overlap, queries every database in scope, walks everything once a day, and removes a page only after Notion confirms it is gone. Large databases are read whole, past Notion's 10,000-row query cap. One item Notion refuses is left out with a warning, and a sync cut short goes on next time. Not yet: pages under pages, and a page as a chosen folder, which wait for cli-core. See the sync.