CLIUpdate Pages

Update Pages

Update an existing page by page ID.

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

npx @internalpage/cli pages update pg_xxx ./report.html

The page ID is the canonical target because slugs can change. This makes CI scripts and scheduled jobs stable even if a workspace member edits the public path.

You can replace the latest version with another supported file type:

npx @internalpage/cli pages update pg_xxx ./runbook.md
 
npx @internalpage/cli pages update pg_xxx ./openapi.yaml

The shared URL stays the same. The viewer changes to match the latest uploaded source type.