Synopsis
Arguments
Flags
Run
gavai publish --help for the authoritative flag list, including whether the page ID may also be passed as a flag in this version of the CLI.Behavior
The command callsPOST /v1/workspaces/{slug}/pages-publish against the active workspace. The server snapshots the current draft, writes it as the new live version, and invalidates the edge cache for that page. The response includes the publish timestamp and the number of page drafts promoted; the CLI prints it as JSON.
For the underlying endpoint’s full contract, see the Pages API reference.