Spec0docs
CLICommands

spec0 sync-status

Check whether a spec needs republishing (compares git SHA to last published).

Auto-generated from spec0 commands --output=json. Do not edit by hand — changes are overwritten by npm run sync:cli-docs.

Usage

spec0 sync-status [ref] [options]

Arguments

namerequireddescription
refnoAPI reference: <org>/<name>, <name>, or UUID

Flags

flagdescriptiondefault
--git-sha &lt;sha&gt;Git SHA to compare against (default: HEAD of current repo)
--api &lt;name&gt;API name (alternative to positional ref)
--api-id &lt;uuid&gt;API id (alternative to positional ref)
--org &lt;uuid&gt;Org id override
--output &lt;format&gt;Output format: text, json, or yaml (default: text)

Exit codes

Stable contract — branch on these from CI and agents.

codemeaning
0success
1generic / unclassified failure
2usage error (bad flags, missing args)
3not authenticated (no token / token expired)
4permission denied (403)
5resource not found (404)
6conflict (409 — e.g. name already taken)
7validation failed (422 — e.g. spec below min score)
8rate limited (429)
9upstream server error (5xx)
10network error (unreachable, timeout)

See also

On this page