Skip to contents

Searches common install locations and the system PATH. Raises claude_error_cli_not_found if the binary cannot be found.

Usage

find_claude(cli_path = NULL)

Arguments

cli_path

Character or NULL. If non-NULL, that path is validated and returned directly (skipping the search).

Value

Character. Absolute path to the claude binary.

Examples

if (FALSE) { # \dontrun{
path <- find_claude()
cat("CLI found at:", path, "\n")

# Validate a custom path
path2 <- find_claude("/usr/local/bin/claude")
} # }