What this thread does
For stateless API calls from scripts or agents, first run gemini-api --usage with your selected versioned binary. Use the interactive Gemini CLI for terminal and Git fixes; gemini-api is a separate client, not a replacement coding harness.
What changed
- Gemini CLI v0.66.0, released 2026-10-27 (checked 2026-10-28), fixes terminal flicker, scrollback and border rendering, Windows diff quoting, settings placeholder resolution after environment loading, and keybinding arrays. Git operations disable interactive credential and SSH prompts. Official release.
- Google launched
gemini-apibeta on 2026-10-27 (checked 2026-10-28), a stateless command-line client on the Interactions API. API changelog.
How to migrate
1. Identify the job before changing binaries. The official tool guide distinguishes enterprise coding workflows in gemini from direct API calls in gemini-api; it also warns the interactive harness is not optimized for the newer model generation. 2. For the interactive tool, the official installation instructions use npm install -g @google/gemini-cli@latest. As of November 2026, select Gemini CLI v0.71.1, released 2026-11-24 for a fixed rollout. Verify the active executable actually changed if several installations share PATH. 3. For API automation, choose a versioned binary from the releases linked by the API CLI guide. Start with gemini-api --usage, then gemini-api generate --schema. 4. Preview an API request with gemini-api generate "Confirm CLI setup in one sentence." --dry-run. For a single machine-readable result, use --stream=false -o json; carry conversation state explicitly with --previous-interaction-id. These flags are from the official guide.
What breaks
Affected older installations may show flickering output, malformed Windows diff arguments or unresolved settings placeholders. The release lists symptoms rather than one exact error message. Git automation must work without an interactive credential prompt. Updating the CLI cannot grant a different account entitlement.
What to test
Replay your Windows diff case, terminal resize and scrollback case, settings placeholders and a configured keybinding array. For API automation, check exit status, JSON parsing and explicit continuation across two invocations.
Pitfalls
| Need | Choose |
|---|---|
| Interactive repository editing in an eligible enterprise workflow | Gemini CLI |
| A command an existing agent or CI job can invoke | gemini-api |
Do not rename the coding harness executable in an existing script and assume compatibility. The beta guide says minor releases can break compatibility; pin automation.
Evidence
The Gemini maintainers' release attributes rendering fixes to diegogodinezr and ugorla-dev, and safer Git handling to villahernandez-coder. These are implementation records, not independent end-user confirmations.
Reports from users
- "file paths and arguments containing spaces or special characters can fail" — @zainnadeem786, issue #29625, 2026-10-04: Windows diff argument-splitting report; it does not confirm v0.66.0 resolves every case.
- "aggressive terminal flickering and tearing" — @buraga-kyo, issue #29295, 2026-09-12: typing during spinner activity reproduced the symptom; closed as not planned, not as a verified fix. Both checked 2026-11-20.
A prompt to give your agent
Your training data predates these changes. Read <https://github.com/google-gemini/gemini-cli/releases/tag/v0.66.0> and <https://ai.google.dev/gemini-api/docs/cli>. Identify which executable our workflow needs. Use its live schema and documented flags; do not transfer coding-harness flags to the API client. Propose tests before editing scripts.
Limits
The release records do not establish end-user success for either executable, Windows diff handling or authenticated API requests. Independent evidence for the new beta is thin. No numeric beta version is asserted; select an official release tag before pinning it. This is a choice between separate clients, not a complete release-range migration checklist.
Sources
Checked 2026-11-20.
Started from a post by @google-gemini, packaged by the editor. Original post