# Gemini CLI SEO

> Use when the user wants to automate SEO tasks using Gemini CLI — meta titles, meta descriptions, alt text, schema markup, keyword research, or bulk page optimization. Trigger phrases: Gemini CLI SEO, bulk meta tags via CLI, automate SEO with Gemini, generate schema with Gemini CLI. For AI-powered SEO strategy see ai-seo.

- Skill: `sheevu/gemini-cli-seo` (Agent Skill)
- Install (CLI): `npx skillmds@latest add sheevu/gemini-cli-seo`
- Raw SKILL.md: https://api.skillmd.com/api/skills/sheevu/gemini-cli-seo/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Marketing & Growth
- Author: sheevu (https://skillmd.com/u/sheevu)
- Updated: 2026-08-19
- Page: https://skillmd.com/skills/sheevu/gemini-cli-seo

---


## Overview

You are a Gemini CLI SEO automation expert. Help the user generate SEO assets in bulk — meta titles, descriptions, alt text, schema markup, and keyword clusters — using Gemini CLI scripts for websites, e-commerce stores, and MSME landing pages.

## When to Use

- User needs bulk meta tags for multiple pages
- User wants AI-generated keyword research from CLI
- User wants schema markup (JSON-LD) auto-generated
- User needs alt text for product images at scale
- User wants SEO content briefs from terminal

## Prerequisites

- Gemini CLI installed and authenticated (see `gemini-cli-setup`)
- A list of URLs, product names, or page topics in a `.txt` or `.csv` file

## Core SEO Commands

### Meta Title + Description

```bash
gemini prompt "Write an SEO meta title (60 chars) and meta description (155 chars) for a page about: MSME loans in Uttar Pradesh"
```

### Bulk Meta Tags from File

Create `pages.txt`:
```
MSME loans Uttar Pradesh
Startup India registration
PMEGP scheme benefits
MUDRA loan eligibility
```

Run batch script:
```bash
while IFS= read -r topic; do
  echo "=== $topic ==="
  gemini prompt "Write SEO meta title and description for: $topic"
done < pages.txt
```

### Keyword Research

```bash
gemini prompt "Generate 20 long-tail SEO keywords for a digital marketing agency targeting MSMEs in India. Group by intent: informational, transactional, navigational."
```

### Schema Markup (JSON-LD)

```bash
gemini prompt "Generate JSON-LD schema markup for a local business named 'Sheevum Digital' located in Lucknow, UP, India. Service: AI marketing for MSMEs."
```

### Alt Text for Images

```bash
gemini prompt "Write SEO-friendly alt text for a product image showing: a small business owner using AI software on a laptop in an Indian office setting"
```

### Content Brief Generator

```bash
gemini prompt "Create an SEO content brief for a blog post targeting the keyword: best AI tools for MSMEs India 2025. Include: title, H2s, word count, LSI keywords, CTA."
```

## Automation Script: Bulk Meta Tag Generator

```bash
#!/bin/bash
# bulk-meta.sh — Generate meta tags for multiple pages

INPUT_FILE="pages.txt"
OUTPUT_FILE="meta-output.md"

echo "# SEO Meta Tags - Generated by Gemini CLI" > $OUTPUT_FILE
echo "Generated: $(date)" >> $OUTPUT_FILE
echo "" >> $OUTPUT_FILE

while IFS= read -r page; do
  echo "## $page" >> $OUTPUT_FILE
  gemini prompt "Write SEO meta title (max 60 chars) and meta description (max 155 chars) for: $page" >> $OUTPUT_FILE
  echo "" >> $OUTPUT_FILE
done < $INPUT_FILE

echo "Done! Output saved to $OUTPUT_FILE"
```

Run:
```bash
chmod +x bulk-meta.sh && ./bulk-meta.sh
```

## Temperature Settings for SEO

```bash
# Use low temperature for factual SEO output
export GEMINI_TEMPERATURE=0.2

# Use medium for creative title variations
export GEMINI_TEMPERATURE=0.5
```

## Integration with This Repo

- Pair with `gemini-cli-copywriting` for SEO-optimized blog content
- Pair with `gemini-cli-content-strategy` for keyword-driven content calendar
- Pair with `gemini-cli-msme-growth` for local SEO content targeting Indian MSMEs

## Tips

- Always review and edit AI-generated meta tags before publishing
- Keep a log of generated outputs in a dated folder: `seo-output/YYYY-MM-DD/`
- Pipe outputs to `.md` files for easy review: `gemini prompt "..." >> output.md`
- Use `--model gemini-1.5-pro` for highest quality SEO writing

