# CLI reference

> Every command of the `kurogane` CLI 0.0.6-beta.1, generated from its own definitions.

```text
kurogane [OPTIONS] <COMMAND>
```

## Global options

- `--ci`: Never prompt; a true `CI` environment variable does the same
- `-h, --help`: print a command's help
- `-V, --version`: print the CLI's version

## `kurogane install`

Install the Chromium runtime the project uses.

Outside a project, installs the version this CLI was built with.

```text
kurogane install [OPTIONS]
```

## `kurogane dev`

Run the application, installing its Chromium runtime when missing

```text
kurogane dev [OPTIONS]
```

## `kurogane run`

Run the application with Cargo, installing its Chromium runtime when missing.

Unlike `dev`, this command passes arguments directly to Cargo.

```text
kurogane run [OPTIONS] [CARGO_ARGS]...
```

- `[CARGO_ARGS]...`: Arguments for Cargo. Those after `--` reach the application

## `kurogane bundle`

Build the application and package it for distribution

```text
kurogane bundle [OPTIONS]
```

- `--debug`: Build with Cargo's dev profile instead of release
- `--format <FORMAT>`: Package format (dir or appimage on Linux, dir or nsis on Windows, app on macOS). The default is app on macOS and dir elsewhere
- `--sign`: Sign the bundle's Windows binaries ([signing.windows]) or macOS app ([signing.macos]). Linux bundles are not signed

## `kurogane new`

Create a project from a starter or template

```text
kurogane new [OPTIONS] [STARTER]
```

- `[STARTER]`: Official starter (minimal, react, svelte or vue)
- `--name <NAME>`: Project name
- `--language <LANGUAGE>`: Starter language
- `--template <TEMPLATE>`: Use a template from a local path, git URL or cargo-generate shorthand such as gh:owner/repository
- `--values <FILE>`: Read placeholder values from this TOML file
- `--yes`: Allow the template's hooks to run commands without asking

## `kurogane init`

Add Kurogane to an existing frontend project

```text
kurogane init [OPTIONS]
```

- `--assets <ASSETS>`: Frontend assets directory
- `--dev-url <DEV_URL>`: Dev server URL
- `--yes`: Allow the template's hooks to run commands without asking

## `kurogane clean`

Remove the project's dist/ and Kurogane's caches

```text
kurogane clean [OPTIONS] [TARGET]
```

- `[TARGET]`: `all` also removes tanso's shared Chromium installation, build tools and every application profile One of `all`.
- `--yes`: Accept the confirmation without prompting

## `kurogane showcase`

Run Kurogane's showcase application

```text
kurogane showcase [OPTIONS]
```

- `--yes`: Allow the template's hooks to run commands without asking

## `kurogane doctor`

Check the Chromium runtime, toolchain and project

```text
kurogane doctor [OPTIONS]
```

- `--json`: Print the full report as JSON

## `kurogane list`

List application profiles and versions

```text
kurogane list [OPTIONS] [TARGET]
```

- `[TARGET]`: Only profiles or only versions; both by default One of `profiles`, `version`.

## `kurogane info`

Show the CLI, environment and project configuration

```text
kurogane info [OPTIONS]
```

## `kurogane self`

Manage the kurogane CLI itself

```text
kurogane self [OPTIONS] <COMMAND>
```

Subcommands: `self uninstall`

## `kurogane self uninstall`

Remove an installer-managed Kurogane installation.

Removes the CLI, PATH setup, Kurogane's caches and tanso's shared Chromium runtimes, which other tanso projects use too. Application profiles and unmanaged installations are preserved.

```text
kurogane self uninstall [OPTIONS]
```

- `--yes`: Accept the confirmation without prompting
- `--keep-data`: Keep the installed Chromium runtimes and caches
