GMP-CLI - A CLI for the Google Marketing Platform, built for AI/humans
by•
A CLI for Google Analytics 4, Search Console, Google Ads, and Tag Manager. Run reports, check indexation, audit tags — all from the terminal. Output as JSON, table, or CSV. Pipe to jq, feed to Claude/Gemini, or automate with shell scripts. Open source, Apache 2.0.
Replies
Best
Maker
📌
As someone who works with AI agents daily, I needed a way to let Claude and Gemini access GMP data directly. So I built a CLI that covers all 4 major Google Marketing Platform APIs:
- Google Analytics 4 — reports, realtime, metadata, compatibility checks
- Search Console — search analytics, URL inspection, sitemaps
- Google Ads — campaigns, keywords, search terms, raw GAQL queries
- GTM — full container audit (tags, triggers, variables, versions)
Everything outputs as JSON (perfect for AI agents and jq), table, or CSV. Install with npm install -g @lucianfialho/gmp-cli and you're ready.
It's open source (Apache 2.0) and I'm actively building — next up: funnel reports, custom channel groups, and a unified dashboard mode.
Would love your feedback!
Report
This is the tool I've always needed but for some reason didn't think of. Thank you. I have no idea how someone hasn't done this sooner. After GTM heavy week, it's especially wonderful to see.
Replies
This is the tool I've always needed but for some reason didn't think of. Thank you. I have no idea how someone hasn't done this sooner. After GTM heavy week, it's especially wonderful to see.