How to use Gemini CLI for SEO with Search Console data

Gemini CLI can do query-level SEO work from your terminal once it has Search Console evidence to work from. Connected to Brand Armor AI, it reads growth opportunities that include the Search Console comparison for each page, edits titles and content in your repo, and checks how Gemini itself answers the related prompts. Users moved to Antigravity CLI can run the same workflows there.

  • Sign in with OAuth, API key optional
  • Setup in about 1 minute
  • Setup checked against Google's docs, 29 November 2026

Gemini CLI marketing workflows, step by step

How to use Gemini CLI to find pages that are losing clicks

Ask for the pages where the Search Console comparison shows clicks falling, then look at why before changing anything. Brand Armor AI lists those opportunities with the referenced page and related prompts, and Gemini CLI can fetch the live page safely and compare it with your source files.

  1. Ask Brand Armor AI for growth opportunities whose Search Console comparison shows clicks dropping.
  2. Have Gemini CLI sort them by lost clicks and keep the top five.
  3. For each page, fetch the live version through Brand Armor AI and open the source file in your repo.
  4. Ask for a one-line likely cause per page, such as an outdated title or a missing answer.
Prompt for Gemini CLI
Use Brand Armor AI to list growth opportunities where Search Console shows clicks dropping. Sort by lost clicks, fetch the top five pages and give one likely cause each, with the matching file in this repo.

Result: A short, ranked list of pages losing clicks, each with a likely cause and its source file.

How to use Gemini CLI to match page titles to the queries people search

A page can rank for a query its title does not mention, which costs clicks. Brand Armor AI shows the Search Console comparison and prompts behind each opportunity, and Gemini CLI rewrites the title and opening line of that one page to match how people phrase the query.

  1. Pick one opportunity from Brand Armor AI and read its Search Console comparison and related prompts.
  2. Have Gemini CLI compare the current title and first paragraph with the wording in that evidence.
  3. Ask for three title options that keep the page accurate, and choose one.
  4. Commit the change and revisit the opportunity after a few weeks of new data.
Prompt for Gemini CLI
Use Brand Armor AI to read the Search Console comparison and prompts for our top growth opportunity. Compare them with the page title and first paragraph in this repo and suggest three accurate title rewrites.

Result: A page title and opening that use the words searchers actually type.

How to use Gemini CLI to compare Gemini answers with your Search Console pages

Check whether the pages that earn search clicks are also the ones Gemini relies on when it answers about your category. Brand Armor AI stores how Gemini answered your saved prompts and which sources it cited, so Gemini CLI can line those up against your Search Console opportunities.

  1. Ask Brand Armor AI for Gemini answers to your saved prompts, with citations.
  2. Pull the growth opportunities for the same topics with their Search Console comparison.
  3. Have Gemini CLI list topics where you get search clicks but Gemini cites other sites.
  4. Pick one topic and plan the content change in your repo.
Prompt for Gemini CLI
Use Brand Armor AI to get Gemini answers and citations for our saved prompts, and the growth opportunities on the same topics. List topics where Search Console shows clicks but Gemini cites other sites.

Result: A list of topics where search traffic and Gemini answers disagree, ready to act on.

What Gemini CLI does on its own, and what it needs Brand Armor AI for

Gemini CLI on its own

  • Works in the terminal next to your repo, so it can read files, run scripts and edit content in one place.
  • Handles long context well, which helps when comparing many pages and queries at once.
  • Can run non-interactively from a script for repeat checks.

With Brand Armor AI connected

  • It has no built-in view of your Search Console data; Brand Armor AI attaches the Search Console comparison to each opportunity.
  • It does not keep a record of how Gemini answers about your brand; Brand Armor AI stores answers and citations for your saved prompts.
  • It cannot fetch a live page with the evidence beside it; Brand Armor AI provides a safe fetch of the referenced page.

Every connection starts read-only. Posts are saved as drafts unless you ask to schedule or publish, and you approve actions when you connect. See everything an agent can do in Brand Armor AI.

How to connect Gemini CLI to Brand Armor AI

You need a Brand Armor AI account with your website and social channels connected. You add Brand Armor AI to Gemini CLI with gemini mcp add --transport http brandarmor https://api.brandarmor.ai/mcp, then sign in with /mcp auth brandarmor. Since June 2026, Google moved unpaid and Google One users to Antigravity CLI, where you add the same URL as serverUrl in mcp_config.json.

  1. Gemini CLI: add the server

    Add -s user to make it available in every project.

    bash
    gemini mcp add --transport http brandarmor https://api.brandarmor.ai/mcp
  2. Sign in

    In a Gemini CLI session, run the auth command. It opens Brand Armor AI in your local browser.

    text
    /mcp auth brandarmor
  3. Antigravity CLI

    Add Brand Armor AI to ~/.gemini/config/mcp_config.json (or .agents/mcp_config.json in a project). Sign-in starts automatically.

    json
    {
      "mcpServers": {
        "brandarmor": { "serverUrl": "https://api.brandarmor.ai/mcp" }
      }
    }

Prefer an API key?

  1. Use an API key

    Create the key in Brand Armor AI under Settings, AI connections, API keys. Choose "Read and act" only if the agent should create, schedule or publish. Keep it in an environment variable or the agent's secret store, never in a shared file.

    bash
    gemini mcp add --transport http \
      --header "Authorization: Bearer $BRANDARMOR_API_KEY" \
      brandarmor https://api.brandarmor.ai/mcp
  • Gemini CLI uses httpUrl for Streamable HTTP in settings.json; the gemini mcp add command writes this for you. Avoid underscores in server names.

More things to ask Gemini CLI

  • “Use Brand Armor AI to show how Gemini answers about our brand compared with last month.”
  • “List Brand Armor AI growth opportunities that come from Search Console data.”
  • “Draft a post about our new guide and save it as a draft in Brand Armor AI.”

Gemini CLI for marketing: questions

Can Gemini CLI access Google Search Console?
Not on its own. Connect Search Console to Brand Armor AI, then Gemini CLI reads growth opportunities that include the Search Console comparison for each referenced page.
Should I use Gemini CLI or Antigravity CLI?
Use the one Google gives you access to. Unpaid and Google One users were moved to Antigravity CLI on June 18, 2026, and both can connect to Brand Armor AI.
Does Gemini CLI show how Gemini describes my brand?
Not by itself. Brand Armor AI tracks how Gemini answers your saved prompts, and Gemini CLI can read those answers and citations once connected.
Can I run a weekly Search Console check with Gemini CLI?
Yes. Run Gemini CLI non-interactively from a scheduled script and connect Brand Armor AI with an API key, since OAuth sign-in needs a local browser.
Which one should I use, Gemini CLI or Antigravity CLI?
Use the one Google gives you access to. Unpaid and Google One users were moved to Antigravity CLI on 18 June 2026; both support Brand Armor AI.
Does it work in the Gemini app?
The standard Gemini app does not support custom MCP servers. Use Gemini CLI or Antigravity CLI.

Looking for ongoing tracking of how Gemini describes your brand, rather than Search Console work? See Gemini brand tracking.

Setup checked against official Google documentation on 29 November 2026:

Gemini CLI is a trademark of Google. Brand Armor AI is not affiliated with or endorsed by Google.

Bring Search Console evidence into Gemini CLI

Start free, connect Search Console, then add Brand Armor AI to Gemini CLI or Antigravity CLI. Your first list of pages losing clicks takes one prompt.

Start free