# CLI Reference Binary: `karapace`. Defined in `crates/karapace-cli/src/main.rs`. ## Global flags | Flag | Default | Description | |------|---------|-------------| | `--store ` | `~/.local/share/karapace` | Store directory path | | `--json` | `false` | JSON output | | `--verbose` / `-v` | `false` | Debug-level logging | | `--trace` | `false` | Trace-level logging (implies debug) | ## Environment variables | Variable | Used by | Description | |----------|---------|-------------| | `KARAPACE_LOG` | cli, dbus | Log level filter: `error`, `warn`, `info`, `debug`, `trace`. Overrides `--verbose`/`--trace`. | | `KARAPACE_STORE` | dbus | Override default store path. | | `KARAPACE_SKIP_PREREQS` | cli | Set to `1` to skip runtime prerequisite checks. | ## Exit codes | Code | Constant | Condition | |------|----------|-----------| | 0 | `EXIT_SUCCESS` | Success | | 1 | `EXIT_FAILURE` | General error | | 2 | `EXIT_MANIFEST_ERROR` | Manifest parse or validation error | | 3 | `EXIT_STORE_ERROR` | Store integrity or lock error | Defined in `crates/karapace-cli/src/commands/mod.rs`. --- ## Commands ### `new` Generate a new `karapace.toml` manifest in the current directory. ``` karapace new [--template