Gemini CLI

Zernio for Gemini CLI

Add the server

Writes it to ~/.gemini/settings.json for every project.

then, in a session

Run YouTube from Gemini CLI

Read analytics, reply to comments, run Google Ads campaigns, send conversions to the Google Ads conversion API and publish posts on YouTube, from Gemini CLI. Gemini CLI reads a lot at once, so a quarter of conversations or campaign rows fits in one question, with the answer saved as a CSV.

  • Analytics
  • Inbox
  • Google Ads
  • Conversions
  • Publishing

Join 200,000+ of the world's most ambitious developers and builders

Warner Music Group
Runable
ClickUp
MoFlo
RE/MAX
Readdy
Read everything at once, answer in a sheet

A year of YouTube analytics, summarised for a Doc with Gemini CLI

Gemini CLI is an open source terminal agent with a large context window. Pull months of platform history into one session, ask what it shows, and get the answer as a CSV for Google Sheets or a summary to paste into a Doc.

  1. 01

    Ask Gemini CLI: "pull a year of YouTube analytics and summarise it in one page".

  2. 02

    It reads the numbers through Zernio's analytics tools and writes the summary plus analytics.csv.

  3. 03

    Paste the summary into a Google Doc and chart the CSV in Sheets.

A quarter of YouTube comments, read in one go

  1. 01

    Ask Gemini CLI: "pull 90 days of YouTube conversations and list what people ask most".

  2. 02

    It reads the conversations through Zernio and keeps them all in context while it groups them.

  3. 03

    It writes triage.csv for the ones still open; edit the reply column in Sheets and save it back.

  4. 04

    Gemini CLI reads your edits and sends only the rows you marked.

Use cases

How people run YouTube from Gemini CLI

A year of YouTube, one summary

Pull twelve months of YouTube analytics into one session and ask for the turning points. The output is a one-page Markdown summary to paste into a Google Doc, with the rows in a CSV.

Replies edited in Sheets

Gemini CLI writes open YouTube comments to a CSV with a suggested reply column. Your team edits it in Google Sheets, marks rows to send, and Gemini CLI sends only those.

House rules in GEMINI.md

Write your tone, banned phrases and escalation rules for YouTube into GEMINI.md. Gemini CLI loads that file as context in every session, so a new teammate's prompts follow the same rules.

Setup

Gemini CLI and YouTube in 4 steps

Gemini CLI reaches YouTube through the Zernio MCP server. No Zernio server to host and no YouTube developer app of your own.

01

Connect YouTube

Sign up free and connect a YouTube channel you own, on a personal Google account or a Brand Account in Zernio.

Connect YouTube

02

Add the server

--scope user writes it to ~/.gemini/settings.json for every project. Leave it out to add it to this project's .gemini/settings.json only.

03

Sign in

In a Gemini CLI session, start the OAuth flow and approve it in the browser. Gemini CLI discovers Zernio's OAuth settings on its own.

04

Check it works

Run /mcp in a session and confirm zernio shows as CONNECTED with its tools listed.

Good to know in Gemini CLI

  • --scope user puts zernio in ~/.gemini/settings.json for every project; leave it out to keep it to one project's .gemini/settings.json.
  • Put reply rules and tone in a GEMINI.md file; Gemini CLI loads it as context, so drafts follow the same rules in every session.
  • gemini -p runs one prompt with no session, and --output-format json returns the answer as structured data for a shell script.
What it can do

What Gemini CLI can do on YouTube

Gemini CLI reads a lot at once, so a quarter of conversations or campaign rows fits in one question, with the answer saved as a CSV.

Analytics

Summarises a year of YouTube numbers into one page of Markdown for a Google Doc, with the rows alongside as CSV.

Per-video views, likes and comments, plus daily views and watch time, channel insights, audience demographics and retention curves (daily and demographic data run 2 to 3 days behind).

Inbox

Reads months of YouTube comments in one session to find what people ask most, then sends the replies you approved in a CSV.

List, reply to and delete comments on videos, and approve, reject or hold comments for review with an optional author ban.

Ads

Loads long ranges of Google Ads results at once to spot drift per campaign, and exports the rows for your reporting sheet.

Campaigns and boosted posts on Google Ads, from a separately connected ad account.

Google Ads with Zernio

Conversions

Reads offline sales from a CSV and sends each row to the Google Ads conversion API as an event, starting with one test row.

Google Ads conversions: events sent server-side to an enabled conversion action, which YouTube campaigns optimize toward.

Conversions API docs

Publishing

Schedules YouTube posts row by row from a CSV your team filled in, after the rest of the work is done.

  • Videos: one video per post, with title, description, tags, visibility, category and an optional custom thumbnail
  • Shorts: detected by YouTube from the video itself (3 minutes or shorter, vertical or square), with no flag to set
Prompts

Ask in plain words. Gemini CLI picks the tools.

Written for how Gemini CLI works. Copy one, change the details.

Read everything at once, answer in a sheet, in Gemini CLI

Limits

YouTube rules the agent runs into

Set by YouTube's API or by Zernio, whichever agent you use. Checked against the Zernio YouTube docs on December 4, 2026.

  • Unverified channels are limited to 15-minute videos, and YouTube applies custom thumbnails only on phone-verified channels.
  • YouTube caps API use at 10,000 quota units a day per project; liking a video and creating a playlist cost 50 units each, and a first caption read costs 200.

Connecting Gemini CLI is free. Its calls bill like the API requests behind them.

Each YouTube account counts as one connected account. The first 2 connected accounts are free, then $6 per account a month, falling to $1 as you add more.

Frequently Asked Questions

Connect a YouTube channel you own, on a personal Google account or a Brand Account in Zernio first. Then, in Gemini CLI: add the server and sign in. Run /mcp in a session and confirm zernio shows as CONNECTED with its tools listed.

With --scope user it goes in ~/.gemini/settings.json for every project. Without it, it goes in the project's own .gemini/settings.json.

Through files. Export the sheet as CSV and Gemini CLI reads it from disk, and it writes results back as CSV for you to import. Zernio does the YouTube side.

Gemini CLI has a large context window, so months of YouTube conversations or campaign rows usually fit in one session. For very long ranges, ask it to work month by month and combine the results.

Yes. gemini -p runs a single prompt without opening a session, and --output-format json returns the response and stats as JSON. You can also pipe a file in on stdin.

Write them in a GEMINI.md file. Gemini CLI loads it as context at the start of each session, so tone and escalation rules apply without repeating them in every prompt.

Yes, under Apache 2.0. You can read how it connects to MCP servers like Zernio, and its settings live in plain settings.json files.

No. YouTube's Analytics API does not expose impressions or impressions click-through rate. You get views, likes, comments, watch time, subscriber changes, demographics and retention.

Give Gemini CLI your YouTube account

Connect a YouTube channel you own, on a personal Google account or a Brand Account, add Zernio to Gemini CLI, and ask.

  • Analytics
  • Inbox
  • Google Ads
  • Conversions
  • Publishing