ClaudeWrapper.Commands.Update (ClaudeWrapper v0.8.0)

Copy Markdown View Source

Check for CLI updates and install if available.

Wraps claude update (CLI alias upgrade). Takes no options.

Mutating command

update/1 runs claude update, which installs a newer build when one is available, mutating the local installation. Call it deliberately.

Usage

config = ClaudeWrapper.Config.new()
{:ok, output} = ClaudeWrapper.Commands.Update.update(config)

Summary

Functions

Check for updates and install if available.

Functions

update(config)

@spec update(ClaudeWrapper.Config.t()) :: {:ok, String.t()} | {:error, term()}

Check for updates and install if available.

Returns the CLI's output on success.