# okibi migrate

> Move a CLI an older Okibi generator built onto the current one

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 migrate

Rebuilds a CLI the earlier, agent-led generator built with the current generator, as the web's Migrate does. It's free. A published CLI keeps its commands, flags and requests, and every difference is reported; nothing publishes until you've reviewed it (`okibi migration show`), accepted each blocking difference (`okibi migration accept`) and run `okibi runs publish <run>`. An unpublished CLI is rebuilt from its source, with nothing to compare.

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

Flags:

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--api-url` | string | https://okibi.ai | Okibi API base URL |
| `--json` | bool |  | print the started run, or the finished build and its migration, as JSON |
| `--no-wait` | bool |  | start it and return without following it |
| `--workspace` | string |  | workspace slug (or OKIBI_WORKSPACE; ignored for workspace-locked keys) |
| `--yes` | bool |  | start without asking |

Examples:

```sh
okibi migrate agentmail
okibi migrate agentmail --yes --no-wait --agent
```
