Overview
While cmd’s agent mode can autonomously take on complex tasks, you might prefer to bring in an external agent.Setting up Gemini CLI gives you access to powerful agentic capabilities through cmd’s native interface in Xcode.
Prerequisites
Before configuring Gemini CLI in cmd, you need to have Gemini CLI installed and set up on your system.Install Gemini CLI
Follow the official setup guide to install Gemini CLI.
Verify Installation
Ensure Gemini CLI is working properly and that your version is higher or equal to
0.20.0:Configuring Gemini CLI in cmd
Once Gemini CLI is installed and configured, you can enable it in cmd:Configuration
cmd should automatically detect where Gemini CLI is installed on your system.Otherwise, or if you need specific launch arguments, you can manually specify how to launch Gemini CLI
- Click “Add Provider” or “Configure” for Gemini CLI
- Provide the path to the Gemini CLI binary
- Optionally, specify a custom command if you use a specific way to run Gemini CLI
Example: Direct binary path
Example: Direct binary path
If you have Gemini CLI installed in a specific location:
Example: npm global install
Example: npm global install
If installed via npm globally:
Example: Homebrew install
Example: Homebrew install
If installed via Homebrew:

