Getting Started with Gemini CLI
Gemini CLI is Google's AI coding agent that runs in your terminal. It connects to your codebase, lets you describe tasks in natural language, and writes code, runs commands, and helps with debugging and reviews.
1. Install Gemini CLI
Verify the installation:
gemini --version
Authenticate Gemini
2. Install the Salesforce CLI & Connect Your Org
Verify the installation:
Run this command:
sf --version
Expected output: @salesforce/cli/
Authenticate Your Org (No Browser Required)
Copy the command below and run it in your terminal to authenticate the Salesforce CLI with your org:
Verify your org connection:
Run this command:
sf org display user
Expected output: Your org username and alias
3. Install Salesforce Skills & Start Building
Choose a skills library to install. Each provides Salesforce development knowledge via the Agent Skills open standard. Compare all options.
Start Building
Copy and paste this prompt into Gemini CLI. Optionally enter a project and agent name below; if you leave it blank, the prompt uses "ExampleName".
What Happens Next
After you paste the prompt, Gemini CLI will use the installed agentforce-adlc skills:
- Discover: Retrieve your agent, parse subagents and actions, validate targets exist in the org
- Scaffold: Generate real backing actions (Flows/Apex) for every subagent, no stubs or mocks
- Deploy: Validate bundle, deploy metadata, publish and activate the agent
- Test & Optimize: Run evaluation tests, analyze traces, fix issues, and iterate until quality is good
Tips
- Be specific about scope: "Handle order status and returns" beats "Customer support"
- Say what it should NOT do: "Does NOT handle billing questions or account changes"
- Mention verification needs: "Verify identity before showing account details"
- Include state tracking: "Track the order number across conversation turns so the customer doesn't have to repeat it"