Skip to content
⌘K

Command reference

okibi generate

Create a CLI from an OpenAPI spec, API docs, a GitHub repo, or code

Generated from okibi 0.2.14. Every command also takes the global flag --agent.

Creates a CLI on the Okibi pipeline, as the web create form does, and follows its build (Spec, Codegen, Lint, Build, Test). An OpenAPI spec (--spec, a link or a local file) builds straight away; docs (--docs) or a GitHub repository (--repo) first have an agent write the spec. --repo with --spec builds the first build straight from that spec; later builds rewrite it from the repository's code as it changes. --example builds the petstore example. With --rebuild, a CLI whose first build never shipped is rebuilt from the new source.

Usage
okibi generate [dir] [flags]

Flags

FlagTypeDescription
--api-urlstringOkibi API base URLdefault https://okibi.ai
--destinationstringwhere the code goes: hosted (Okibi) or github (your GitHub; Pro)default hosted
--docsstringAPI documentation link (an agent writes the spec)
--exampleboolbuild Okibi's petstore example
--github-accountstringwith --destination github: the connected GitHub account the code goes to
--jsonboolprint the build as JSON once it settles
--namestringname of the CLI (kebab-case); --example defaults to petstore
--no-pullbooldon't download the generated CLI once it's ready
--no-waitboolstart the build and return without following it
--outstringdirectory to unpack the generated CLI into (default: ./<name>)
--rebuildboolrebuild an existing CLI whose first build never shipped from this source
--repostringpublic git repository: github.com/acme/api, or any https:// git link (an agent writes the spec from its code)
--specstringOpenAPI spec: a link, or a local .json/.yaml file; with --repo, the repository's starting spec
--workspacestringworkspace slug (or OKIBI_WORKSPACE; ignored for workspace-locked keys)