# okibi regenerate

> Rebuild a CLI from its source, as the web's Regenerate does

Generated from okibi 0.2.7. Every command also accepts `--agent`; see [Agent and CI mode](https://okibi.ai/docs/cli/agent-mode.md).

## okibi regenerate

Rebuild a CLI from its source, as the web's Regenerate does

```sh
okibi regenerate <cli> [flags]
```

Flags:

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--api-url` | string | https://okibi.ai | Okibi API base URL |
| `--branch` | string |  | agent-built repository CLIs: the branch to regenerate from ('' = the default branch) |
| `--dir` | string |  | CLIs built from a code directory: the directory again, for the agent to read (a changed one writes the spec again) |
| `--json` | bool |  | print the build as JSON once it settles |
| `--no-pull` | bool |  | don't download the generated CLI once it's ready |
| `--no-wait` | bool |  | start the build and return without following it |
| `--out` | string |  | directory to unpack the generated CLI into (default: ./<name>) |
| `--rewrite-spec` | bool |  | docs- or code-built CLIs: have the agent write the spec again (once per written spec; it counts as a generation) |
| `--workspace` | string |  | workspace slug (or OKIBI_WORKSPACE; ignored for workspace-locked keys) |
