Skip to content
⌘K

Build and change

Review and iterate

Check a new CLI against real work, then make the smallest change that fixes it.

A first build is rarely the last one. Check the CLI against what your users need. Then pick the smallest change that fixes what you found.

Check the CLI

  • Read my-cli --help, then the help of the commands your users need most. The project's Docs, or okibi clis docs my-cli, show the same.
  • Try its commands in a safe preview: Try it on the Builds page, or /simulator my-cli in the TUI.
  • Sign in the way your users will.
  • Try a read, a list that needs more than one page, an error, and a safe write.
  • Confirm it calls the right API base URL before you point it at real customer data.

Every build checks that each command answers --help and that doctor runs. Only you know your product's permissions and workflows, so test those yourself.

Pick the change

What you foundWhat to do
A command's name, group, help, or examples should changeAccept an improvement, edit okibi.yml, or ask the project chat, in the studio
You need a command or fix okibi.yml can't makeMake a custom request
The spec changed, or you want new endpointsRegenerate, or let the pipeline rebuild on its own
The spec an agent wrote from docs or code is wrongWrite the spec again, or okibi regenerate my-cli --rewrite-spec. It counts as 1 generation, once per written spec
The API base URL is wrongChange the API endpoint
You changed the generated code yourselfPublish your commits
A CLI an older generator built needs a fixMigrate it onto the pipeline

Studio changes and Regenerate build a new version that waits for you to publish it. None of these move the official release by themselves. You choose that in Releases and install.

Read the spec

The project's Spec page shows the OpenAPI spec the CLI builds from: the one you gave, or the one Okibi wrote from your docs or code. Each build follows it.

Terminal
okibi spec source my-cli
okibi spec source my-cli --out openapi.yaml

A CLI built from a spec link keeps no spec file: the link is its spec, and spec source says so. For a CLI an older generator built, the Spec page and okibi spec show my-cli show its cli-spec.md too. Both are read-only.

Next steps