ANTIGRAVITY LABJP
Articles/Antigravity Basics
Antigravity Basics/2026-06-12Intermediate

Six Days Until Gemini CLI Shuts Down — Auditing Automation Dependencies and Migrating to Antigravity CLI

With Gemini CLI ending on June 18, here is a practical walkthrough for finding gemini command dependencies hiding in cron, CI, and shell scripts, then migrating and verifying them on Antigravity CLI.

Antigravity CLI12Gemini CLI12Migration4Automation6CI/CD17Operations9

Premium Article

I looked at the calendar and sat up a little straighter. On June 18, 2026, Gemini CLI and the Gemini Code Assist IDE extensions stop processing requests for AI Pro, Ultra, and free individual tiers. That leaves six days.

If you only use the CLI interactively, switching to Antigravity CLI on the day itself would be mildly annoying at worst. What worries me is everything humans are not watching: the cron job that fires at 3 a.m., the CI step buried in a workflow file, the lone gemini -p line deep inside a shell script. On the morning of June 18, those will stop quietly, leaving nothing behind but an error log.

I had wired Gemini CLI into the update pipelines for several sites I run as an indie developer, and my migration began with an uncomfortable admission: I did not know exactly where all the dependencies were. What follows is the order I worked in — inventory, migration, verification — and what I actually found.

What Stops on June 18, and What Doesn't

It pays to define the blast radius precisely first. Get the scope wrong and the whole audit loses accuracy.

Two things stop:

  • Gemini CLI (the gemini command in your terminal) — request processing ends for AI Pro, Ultra, and free individual use
  • Gemini Code Assist IDE extensions — discontinued on the same date

Equally important is what keeps running:

  • The Gemini API itself — application code calling the API directly with an API key is unaffected
  • Antigravity IDE and the desktop app — these are the successors, not casualties
  • Antigravity CLI — the new Go-based CLI, which carries over Agent Skills, Hooks, Subagents, and Extensions

The critical distinction is between "code that uses the Gemini API" and "scripts that invoke the Gemini CLI." Anything going through an SDK is out of scope; anything launching the gemini command from a shell is in scope. The official background is in the Gemini CLI to Antigravity CLI transition announcement.

Surface Every Dependency Mechanically — Don't Trust Memory

I gave up on finding dependencies from memory. Only the me of six months ago knows what the me of six months ago put in those scripts.

Here is the three-stage inventory I actually ran:

# 1. Search projects and config directories for gemini command invocations
grep -rn --include="*.sh" --include="*.yml" --include="*.yaml" --include="*.mjs" \
  -E '(^|[^a-zA-Z_-])gemini( |$|[^a-zA-Z_-])' \
  ~/projects ~/.config 2>/dev/null | grep -v node_modules
 
# 2. Check jobs registered in cron
crontab -l 2>/dev/null | grep -n 'gemini'
 
# 3. Mine shell history for usage patterns that have become muscle memory
history | grep 'gemini -p' | tail -20

Stages 1 and 2 find the places where breakage causes real damage; stage 3 finds the places where your own hands will fumble after the switch. The search pattern is deliberately strict so that package names like gemini-api-client or compound words like antigravity-gemini don't produce false positives.

As you triage the results, sort them into two buckets: "used interactively by a human" and "invoked unattended by a script." Unattended wins priority every time — there is no human nearby to notice the failure.

In my environment, grep returned eleven hits, three of them unattended. Not a dramatic number, but one of those three sat inside a daily morning job and would have failed on June 18 without question had I missed it.

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
A working inventory script that mechanically surfaces gemini command dependencies across cron, CI, and shell scripts
The three compatibility gaps that actually stopped me mid-migration — auth, config files, and output format — with fixes for each
A smoke-test design and decision framework for a migration that has no rollback path
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Antigravity Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

Antigravity2026-06-14
A Compatibility Shim That Bridges Old Scripts to agy Before Gemini CLI Shuts Down
Ahead of the June 18 Gemini CLI shutdown, instead of rewriting every gemini call scattered across cron and CI at once, a thin compatibility shim can bridge them to the Antigravity CLI (agy). Here is the approach with working shell scripts.
Antigravity2026-05-23
Moving to the Antigravity CLI (agy): Shifting Your Scripts Off Gemini CLI Before the June 18 Shutdown — Without Downtime
A grounded walkthrough of Google's Antigravity CLI (agy): fastest setup, a no-downtime migration off Gemini CLI, a compatibility shim, the Pro vs Ultra cost break-even, and running recurring work with scheduled messages — based on actually moving my own repos across.
Antigravity2026-06-16
Does the New CLI Do the Same Job? An Output-Parity Gate Before Switching to Antigravity CLI
With Gemini CLI shutting down on June 18, here is how I froze the old CLI's artifacts as a golden baseline and built a parity harness to catch regressions before cutting over to Antigravity CLI — with normalization and a go/no-go gate, in code.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →