gavai publish. This guide covers the synopsis, the input file format, and the exit codes you should branch on in CI.
Synopsis
Arguments
Flags
Run
gavai patch --help for the authoritative flag list. The CLI is the source of truth.Behavior
The command reads the file you pass to--ops, validates it as a JSON Patch array, and sends PATCH /v1/workspaces/{slug}/pages/{id} with the operations as the request body. Each operation follows RFC 6902 — an op (e.g. replace, add, remove), a JSON Pointer path into the page document, and (where applicable) a value.
The server applies operations atomically. If any operation fails — invalid pointer, schema violation, conflict with a concurrent edit — the entire patch is rejected with exit code 6 and the draft is left unchanged.
Example
Apatches.json that retitles a hero headline and toggles a feature flag:
patches.json