Spec0docs
CLICommands

spec0 ci generate

Generate a workflow file for <provider> that runs 'spec0 publish' on push.

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

Usage

spec0 ci generate <provider> [options]

Arguments

namerequireddescription
provideryesCI provider (currently supported: github)

Flags

flagdescriptiondefault
--spec-file &lt;path&gt;Path to OpenAPI spec fileopenapi.yaml
--api-name &lt;name&gt;API name to embed in the workflow (default: spec filename)
--branch &lt;branch&gt;Git branch that triggers the workflowmain
--writeWrite the workflow to its suggested path (default: print to stdout)
--org &lt;uuid&gt;Org id override
--output &lt;format&gt;Output format for metadata: text, json, 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