maton notion page create

maton notion page create [flags]

Create a page either as a child of another page (–parent-page) or as a row in a database data source (–data-source). Exactly one parent must be specified. The –title flag is mapped to the “Name” property for database rows and the “title” property for child pages.

Options

--connection <string>
Connection ID to route through (Maton-Connection header)
--data-source <string>
Parent data source ID for database rows (one of --data-source/--parent-page)
--dry-run
Print the request that would be sent without executing it
--format <string>
Output format: 'json' (default) or 'text' on supported commands
-q, --jq <expression>
Filter JSON output using a jq expression
--paginate
Follow next_cursor and concatenate all pages (list commands only)
--parent-page <string>
Parent page ID for child pages (one of --data-source/--parent-page)
--properties <string>
Additional properties as JSON, merged with title
--template <string>
Format JSON output using a Go template; see "maton help formatting"
--title <string>
Page title (required)

Options inherited from parent commands

-p, --profile <string>
Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)

Examples

$ maton notion page create --parent-page 0123... --title 'Sprint planning'
$ maton notion page create --data-source 4567... --title 'New task' \
    --properties '{"Status":{"select":{"name":"Active"}}}'

See also