CLIOverview

CLI

Run the CLI with npx:

npx @internalpage/cli --help

The CLI defaults to the production API.

npx @internalpage/cli auth login
npx @internalpage/cli pages create ./runbook.md --slug incident-runbook

auth login stores your personal API token in the OS config directory. Later commands reuse that token, so local scripts and AI agents do not need the token in every command.

Common commands

npx @internalpage/cli auth login
npx @internalpage/cli pages list --json
npx @internalpage/cli pages create ./report.html --slug q2-report
npx @internalpage/cli pages create ./runbook.md --slug incident-runbook
npx @internalpage/cli pages create ./openapi.yaml --slug billing-api
npx @internalpage/cli pages update pg_xxx ./report.html
npx @internalpage/cli pages read pg_xxx --output report.html

For CI or one-off commands, IP_TOKEN overrides the saved token.

See AI Agents for agent workflows and Page File Types for HTML, Markdown, and OpenAPI behavior.