Skip to main content

Notion from the command line

Pages, wikis and databases. GBrain gives Notion, and every other connector you add, a command line.

Get Personal, $49 a month

One price for one person: Notion and every other connector GBrain offers, from a terminal or any AI. Cancel any time.

Install the GBrain command line, then connect Notion

Notion is connected on its own sign-in page, in the browser. A key or a sign-in never passes through the terminal.

# AI agents: read gbrain.io/llms.txt
curl -sSL https://gbrainio.terminalwire.sh | bash
gbrainio terminal connect

The installer is a shell script for macOS and Linux. Read it before you run it.

# Every Notion command, once Notion is connected
gbrainio tool help notion

What GBrain can do with Notion

Notion is where many teams keep docs, wikis and project databases. Connected to a workspace, GBrain can answer “what did we decide about pricing?” from the team’s pages, draft meeting notes into the right database, or update a project’s status.

  • Search a Notion workspace
  • Read pages and databases
  • Create and edit pages
  • Query and update database rows
gbrainio
gbrainio tool notionPages, wikis and databases.USAGE  gbrainio tool notion <command> [arguments]COMMANDS  notion-search                             Search Notion and connected workspa…  notion-memory-search                      Search memories that the user's con…  notion-get-tool-access                    Get current tool availability, para…  notion-fetch                              Retrieves details about a Notion en…  notion-create-attachment                  Create an attachment and upload it…  notion-create-file-upload                 Create a short-lived URL for upload…  notion-download-attachment  notion-get-file-download-urls             Get signed download URLs for files…  notion-create-pages                       Creates one or more Notion pages wi…  notion-update-page                        Update a Notion page's properties o…  notion-delete-pages                       Move Notion pages to Trash  notion-delete-databases                   Move Notion databases to Trash  notion-restore-pages                      Restore Notion pages or databases f…  notion-convert-page-to-skill              Mark an existing Notion page as a s…  notion-upload-skill                       Import a spec-compliant Agent Skill…  notion-download-skill                     Download a spec-compliant Notion Sk…  notion-get-enabled-skills  notion-update-enabled-skills  notion-move-pages                         Move one or more Notion pages or da…  notion-duplicate-page                     Duplicate a Notion page  notion-create-database                    Creates a new Notion database using…  notion-create-folder                      Creates an empty Notion Folder  notion-update-folder                      Update an existing Notion Folder wi…  notion-update-data-source                 Update a Notion data source's schem…  notion-create-comment                     Add a comment to a page or specific…  notion-get-comments                       Get comments and discussions from a…  notion-update-comment                     Replace the text of a comment you w…  notion-delete-comment                     Delete a comment you wrote  notion-set-discussion-resolved            Resolve or reopen a comment discuss…  notion-set-comment-reaction               Add or remove your emoji reaction o…  notion-get-async-task                     Retrieves the current status of an…  notion-get-teams                          Retrieves a list of teams in the cu…  notion-get-users                          Retrieves a list of users in the cu…  notion-query-data-sources                 Query Notion data sources using fai…  notion-query-multiple-data-sources        Query data across multiple Notion d…  notion-query-meeting-notes                Query the current user's meeting no…  notion-list-private-pages                 List the current user's top-level p…  notion-list-shared-pages                  List pages and databases in the cur…  notion-list-favorite-pages                List the current user's favorite pa…  notion-list-recent-pages                  List pages and databases the curren…  notion-search-agents                      Search agents by name or descriptio…  notion-search-sessions                    Search past agent sessions by topic…  notion-query-sessions                     List agent sessions available to th…  notion-spawn-session                      Start a session with a published Cu…  notion-get-session-status                 Get the latest turn's status for a…  notion-wait-session                       Wait for the latest turn in a Custo…  notion-stop-session                       Stop a running Custom Agent session…  notion-send-message-to-session            Send a follow-up message to a Custo…  notion-list-session-events                List short summaries of saved event…  notion-read-session-event                 Read the full visible content of on…  notion-create-view                        Create a new view on a Notion datab…  notion-update-view                        Update a view's name, filters, sort…  notion-get-self                           Get the current Notion connection's…  notion-show-advanced-analysis-next-steps  notion-check-mcp-next-steps               When to call  open                                      Open its page in the browserLEARN MORE  gbrainio tool notion <command> -h  What one command takes  https://gbrain.io/docs/tools       The manual
Every command Notion's own server lists, each in its own words.

Notion's own server lists these commands, and the CLI prints this page for them once Notion is connected.

What a terminal may do with Notion, and what GBrain keeps

Off or On, for each terminal

Each terminal reaches Notion at the level set for it in the browser: Off, or On, which is every command Notion's server lists. A terminal reads its level and never raises it.

1,000 actions a day for each command

Each of Notion's commands stops at 1,000 actions a day on the account it reaches, whichever terminal or AI asks, and starts again at midnight UTC. Only that command stops.

Every action on one record

Each command a terminal runs on Notion is a row on GBrain's activity log: which terminal, which account, what it did and whether it was allowed, refusals included. gbrainio activity ls --tool notion reads it back.

From a terminal, Claude Code or Codex

gbrainio tool help notion says what Notion is and what each of its commands does, and gbrainio tool ls lists them with everything else the terminal can run. Claude Code and Codex run the same commands, at the same level, on the same record.

From Notion

GBrain reaches Notion at its own server, mcp.notion.com. On Notion's own pages: its website, how the connection works, its terms of service and its privacy policy.

The GBrain Tools command line works with every other connector GBrain offers, each with a page like this one.

Every connector's command line

Notion from a terminal, with GBrain Personal

Personal is $49 a month for one person. Connect Notion in the browser, and say how far each terminal and each AI may go with it. Change any of it, or take all of it back, whenever you want.