Resolves the Gemini CLI binary location through the shared
CliSubprocessCore.ProviderCLI policy.
Resolution order:
GEMINI_CLI_PATHenvironment variable (explicit path)geminion systemPATH(e.g. globally installed via npm)- npm global bin directory (
npm prefix -g/bin/gemini) npxfallback — runsnpx --yes --package @google/gemini-cli gemini
Set GEMINI_NO_NPX=1 to disable the npx fallback.
Summary
Functions
@spec command_args(CliSubprocessCore.CommandSpec.t(), [String.t()]) :: [String.t()]
@spec resolve(CliSubprocessCore.ExecutionSurface.t() | map() | keyword() | nil) :: {:ok, CliSubprocessCore.CommandSpec.t()} | {:error, GeminiCliSdk.Error.t()}
@spec resolve!(CliSubprocessCore.ExecutionSurface.t() | map() | keyword() | nil) :: CliSubprocessCore.CommandSpec.t()