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
.txtor.csvfile
Core SEO Commands
Meta Title + Description
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:
while IFS= read -r topic; do
echo "=== $topic ==="
gemini prompt "Write SEO meta title and description for: $topic"
done < pages.txt
Keyword Research
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)
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
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
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
#!/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:
chmod +x bulk-meta.sh && ./bulk-meta.sh
Temperature Settings for SEO
# 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-copywritingfor SEO-optimized blog content - Pair with
gemini-cli-content-strategyfor keyword-driven content calendar - Pair with
gemini-cli-msme-growthfor 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
.mdfiles for easy review:gemini prompt "..." >> output.md - Use
--model gemini-1.5-profor highest quality SEO writing