Skip to main content
The magnet pages command group works with pages in your workspace. Content is exchanged as markdown.

magnet pages list

List pages, optionally filtered by a search query.
magnet pages list
OptionDescription
--search <query>Search query.
--limit <n>Page size (default from API). Use with --cursor for pagination.
--cursor <c>Pagination cursor (use pagination.nextCursor from the previous response).

magnet pages get

Get a page by ID. Returns the page with its content as markdown (docContent).
magnet pages get <id>
OptionDescription
--preview-onlyReturn a truncated markdownPreview instead of the full body.

magnet pages create

Create a page from markdown.
magnet pages create --title "Architecture notes" --markdown "# Overview ..."
OptionDescription
--title <text>Page title. Required.
--markdown <text>Page content (markdown). Defaults to the title if empty.

magnet pages update

Update a page’s title.
magnet pages update <id> --title "Architecture notes (v2)"
OptionDescription
--title <text>New title.
--skip-yjs-syncSkip syncing to Yjs (e.g. for bulk updates).