maton notion database create

maton notion database create [flags]

Create a database under –parent-page. –properties is the schema map (e.g. {“Name”:{“title”:{}},”Status”:{“select”:{“options”:[{“name”:”Active”}]}}}). The “Name” title property is auto-included if not present in –properties.

Options

--connection <string>
Connection ID to route through (Maton-Connection header)
--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 (required)
--properties <string>
Schema properties as JSON object
--template <string>
Format JSON output using a Go template; see "maton help formatting"
--title <string>
Database 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 database create --parent-page 0123... --title 'Tasks' \
    --properties '{"Status":{"select":{"options":[{"name":"Active"},{"name":"Done"}]}}}'

See also