SoraiDocs
GuidesAPI reference

sorai pages update

Change a page's slug, kind, SEO metadata or header and footer setting.

Only the fields you pass change. Does not touch the page's content: that is drafted and published from the console.

sorai pages update --page-id <uuid> [flags]

Flags

  • --store <id|slug>: A store id or slug. Defaults to SORAI_STORE, the saved login's store, or the only store.
  • --page-id <uuid> (required): The page's id, from sorai pages list.
  • --slug <string>
  • --kind <home|landing|product|custom>
  • --seo <json>: SEO metadata: title, description, og_image_media_id, canonical, noindex. Replaces the whole object, so read it first.
  • --chrome <true|false|null>: true or false forces the store header and footer on or off for this page; null goes back to the default.
  • --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:read and pages:write permissions.

This command changes data. It can overwrite, archive or delete what is stored. Run it with --dry-run first to see what it would do.

On this page