Usage: main [OPTIONS]

  Upload documentation to Notion.

Parent location: [exactly 1 required]
  --parent-page-id TEXT       Parent page ID (integration connected)
  --parent-database-id TEXT   Parent database ID (integration connected)

Cover image: [mutually exclusive]
  --cover-path FILE           Cover image file path for the page
  --cover-url TEXT            Cover image URL for the page

Other options:
  --file FILE                 JSON File to upload  [required]
  --title TEXT                Title of the page to update (or create if it does
                              not exist)  [required]
  --page-id TEXT              ID of an existing page to update. The page is
                              renamed to the given title. Without this, the page
                              is matched by title, and created if no page with
                              the title exists.
  --icon TEXT                 Icon of the page
  --cancel-on-discussion      Cancel upload with error if blocks to be deleted
                              have discussion threads
  --notion-api-base-url TEXT  Override the Notion API base URL. Useful for tests
                              against a mock Notion API.
  --help                      Show this message and exit.
