Install a Claude Code native build.
Wraps claude install [target] [--force].
Mutating command
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)
Summary
Functions
Install a Claude Code native build.
Functions
@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).