> ## Documentation Index
> Fetch the complete documentation index at: https://docs.veadk.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Launch

`launch` runs build and deploy in one command. It reads the lifecycle config, runs `build`, then runs `deploy` if the build succeeds, making it the normal command for publishing a new project or updated code.

Run in a project containing the lifecycle file `agentkit.yaml`. Configure the provider, region, and runtime environment variables using the [Quickstart](https://docs.veadk.xyz/productions/agentkit-cli/archives/0.57.4/en/quickstart.md); `local` and `hybrid` also require local Docker

> [!WARNING]
>
> Cloud publication builds an image and creates or updates a runtime, potentially incurring build, storage, and runtime charges. Check the target project and release timing for an existing service

## launch

| Flag / Argument | Description | Default |
| - | - | - |
| `--recreate-runtime <yes\|no>` | whether to delete and recreate the Runtime when recovery needs replacement (default: ask, No) | — |
| `--config-file <path>` | Lifecycle config file path. | `agentkit.yaml` |
| `--platform <platform>` | Build platform; `auto` lets the CLI choose. | `auto` |
| `--preflight-mode <mode>` | Preflight behavior: `prompt`, `fail`, `warn`, or `skip`. | Global `defaults.preflight_mode`, or `prompt` when unset |

```bash lines theme={null}
agentkit launch --config-file agentkit.yaml --preflight-mode fail
```

`prompt` asks before continuing in an interactive terminal; `fail` exits when preflight checks fail; `warn` prints warnings and continues; `skip` disables preflight checks.

Verify the application after publication:

```bash lines theme={null}
agentkit status
agentkit invoke run "hello"
```

Use `--preflight-mode fail` for unattended publication. `warn` and `skip` do not grant missing service permissions, so a later build or deployment can still fail

> [!WARNING]
>
> When recovery requires a replacement, `--recreate-runtime yes` allows deletion and recreation of the runtime. The prompt defaults to No. Use `--recreate-runtime no` to retain the existing runtime in automation.

```bash theme={null}
agentkit launch --recreate-runtime no
```

Cloud builds look up registry instances in the configured project. If an existing registry is missing, check that project\_name matches the project that owns it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.