Spec0docs
CLICommands

spec0 push

Push an OpenAPI spec to the platform (team-scoped, private)

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

Usage

spec0 push [spec-file] [options]

Arguments

namerequireddescription
spec-filenoPath to OpenAPI spec file (or use --spec-file)

Flags

flagdescriptiondefault
--spec-file <path>Path to OpenAPI spec file
--name <name>API name (kebab-case). Defaults to spec filename if omitted.
--team <team>Team UUID or slug. Defaults to 'Unassigned APIs' if omitted.
--version <version>Version tag (e.g. 1.2.0). Defaults to info.version in spec.
--api-id <id>Existing API UUID to update (backward compat; prefer --name)
--semverAuto-compute next semver via oasdiff diff classification
--git-sha <sha>Git commit SHA (auto-detected if .git is present)
--github-repo <repo>GitHub repository URL for provenance
--github-branch <branch>GitHub branch for provenance
--strictFail on any Spectral lint warning
--skip-lintSkip lint gate
--dry-runValidate and print what would be sent, without pushing
--verbosePrint verbose request/response logs
--format <fmt>Output format: text, json, githubtext
--org <org>Override default org (UUID)

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