Skip to main content

path

Function path 

Source
pub fn path() -> Option<PathBuf>
Expand description

Returns the path to the installed CLI binary, lazily extracting on first call.

When the SDK was built with COPILOT_CLI_VERSION set, this extracts the embedded binary to ~/.cache/github-copilot-sdk-{version}/copilot (or copilot.exe on Windows), verifies the SHA-256 hash, and returns the path. Subsequent calls return the cached result.

Returns None if no CLI was embedded at build time.