CLICreate Pages

Create Pages

Create a page from a local HTML, Markdown, or OpenAPI file.

Run npx @internalpage/cli auth login once before publishing. The CLI reuses the saved token for later commands.

npx @internalpage/cli pages create ./report.html --slug q2-report

Markdown and OpenAPI files use the same command:

npx @internalpage/cli pages create ./runbook.md --slug incident-runbook
 
npx @internalpage/cli pages create ./openapi.yaml --slug billing-api

Use a slug that is readable inside your workspace. The page URL can use the slug, but automation should store the returned page ID for future updates.

Inputs

  • File: .html, .htm, .md, .markdown, .yaml, .yml, or .json
  • Slug: optional, workspace-scoped, editable
  • Token: saved CLI token, or IP_TOKEN for CI and one-off shells