# `ClaudeWrapper.Commands.Install`
[🔗](https://github.com/genagent/claude_wrapper_ex/blob/main/lib/claude_wrapper/commands/install.ex#L1)

Install a Claude Code native build.

Wraps `claude install [target] [--force]`.

> #### Mutating command {: .warning}
>
> `install/2` runs `claude install`, which downloads and installs a native
> build, mutating the local installation. Call it deliberately.

## Usage

    config = ClaudeWrapper.Config.new()

    # Install the CLI's default build
    {:ok, output} = ClaudeWrapper.Commands.Install.install(config)

    # Install a specific target, forcing reinstall
    {:ok, output} =
      ClaudeWrapper.Commands.Install.install(config, target: "latest", force: true)

# `install`

```elixir
@spec install(
  ClaudeWrapper.Config.t(),
  keyword()
) :: {:ok, String.t()} | {:error, term()}
```

Install a Claude Code native build.

## Options

  * `:target` - Version to install: `"stable"`, `"latest"`, or a specific
    version string (positional argument). Omit to use the CLI's default.
  * `:force` - Force installation even if already installed (`--force`,
    boolean).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
