mix claude_code.path (ClaudeCode v0.21.0)

View Source

Prints the path to the resolved Claude CLI binary.

This is useful for running the CLI directly, e.g., for authentication:

$(mix claude_code.path) /login

Usage

mix claude_code.path

Resolution

The path is resolved based on the :cli_path configuration:

  • :bundled (default) — Uses the binary in priv/bin/, auto-installs if missing
  • :global — Finds the system-installed claude binary
  • "/path/to/claude" — Uses the explicit path

Configure via application config:

config :claude_code, cli_path: :global