Skip to content
⌘K

Command reference

okibi generate

Generate a CLI from code, API docs, or an OpenAPI document

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

Submits a generation run to the Okibi cloud and streams progress. With a directory (default: .), the working tree is packaged and uploaded; --repo clones server-side; --docs lets the sandbox agent research public API documentation; --spec accepts either a local OpenAPI file or an https:// spec URL as evidence for that same agent.

Usage
okibi generate [dir] [flags]

Flags

FlagTypeDescription
--api-base-urlstringbase URL the generated CLI should target (stored on the CLI; recorded in cli-spec.md so it's set once)
--api-urlstringOkibi API base URLdefault https://okibi.ai
--docsstringpublic API documentation https:// URL (no codebase required)
--identityboolrequest Okibi Identity explicitly (retained for compatibility; current generations include it by default)
--namestringbinary name for the generated CLI (kebab-case)
--no-pullbooldon't download the artifact when the run succeeds
--outstringdirectory to unpack the generated CLI into (default: ./<name>)
--repostringgit URL to clone server-side instead of uploading
--reviewboolpropose a spec and pause for your approval before building (okibi spec approve/reject)
--specstringOpenAPI document path or https:// URL (no codebase required)
--spec-onlyboolupdate cli-spec.md only, then pause for approval and commit it — no build (free)
--workspacestringworkspace slug for this run (or OKIBI_WORKSPACE; ignored for workspace-locked keys)