Skip to main content

Site pages

Manage pages for the active product from the terminal. Every command is scoped to the active organization and product stored in local CLI config, and every JSON response includes the resolved scope.
Run tpc org switch <org-slug> and tpc product switch <product-slug> before any tpc site page command, or the CLI will refuse with guidance.
List pages for the active product:
tpc site page list
Filter the list (search, status, path prefix, pagination, sort):
tpc site page list \
  --query pricing \
  --status published \
  --path-prefix blog/ \
  --page 2 --page-size 10 \
  --order-by createdAt --order-dir asc
Create a page from inline markdown:
tpc site page create \
  --slug blog/hello-world \
  --title "Hello" \
  --content "# Hello"
Create a page from a local markdown file:
tpc site page create \
  --slug docs/install \
  --title "Install" \
  --content-file ./install.md
Update page fields (only the flags you pass are changed):
tpc site page update page_123 --title "Updated title"
tpc site page update page_123 --content-file ./page.md --status published
Pass an empty string to clear an optional field:
tpc site page update page_123 --redirect-url ""
tpc site page update page_123 --content ""
Soft-delete one or more pages:
tpc site page delete page_123
tpc site page delete page_123 page_456
Every command also supports --format json for scripting:
tpc site page list --format json