Spec0docs
CLICommands

spec0 diff

Diff two specs: each side is a file path or registry ref org/api[@tag] (latest if tag omitted)

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

Usage

spec0 diff <a> <b> [options]

Arguments

namerequireddescription
ayesLeft: local path or org/api[@tag]
byesRight: local path or org/api[@tag]

Flags

flagdescriptiondefault
--breaking-onlyShow breaking changes only (via backend oasdiff service)
--org &lt;uuid&gt;Org id override for registry fetches

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