SoraiDocs
GuidesAPI reference

sorai pages create

Create a page as an unpublished draft with no content yet.

Its content is built and published from the console.

sorai pages create --slug <string> --kind <home|landing|product|custom> [flags]

Flags

  • --store <id|slug>: A store id or slug. Defaults to SORAI_STORE, the saved login's store, or the only store.
  • --slug <string> (required)
  • --kind <home|landing|product|custom> (required)
  • --mode <blocks|html>: blocks uses the page builder; html is hand-written markup.
  • --seo <json>: SEO metadata: title, description, og_image_media_id, canonical, noindex. Replaces the whole object, so read it first.
  • --dry-run: Print the request it would send, and for an update the fields that would change, without changing anything.

Permissions

Needs a key with the pages:write permission.

This command changes data. Run it with --dry-run first to see what it would do.

On this page