Gemini CLI

Zernio for Gemini CLI

Add the server

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

then, in a session

Run Pinterest from Gemini CLI

Run Pinterest Ads campaigns, send conversions to the Pinterest Conversions API, read analytics and publish posts on Pinterest, 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.

  • Pinterest Ads
  • Conversions
  • Analytics
  • 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

Six months of Pinterest Ads results in one question 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: "load six months of Pinterest Ads results by campaign and week and tell me what changed".

  2. 02

    It reads the whole range through Zernio's ads tools into one session instead of a month at a time.

  3. 03

    You get the trend per campaign, and ads.csv with the rows behind it for your reporting sheet.

A year of Pinterest analytics, summarised for a Doc

  1. 01

    Ask Gemini CLI: "pull a year of Pinterest 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.

Use cases

How people run Pinterest from Gemini CLI

Half a year of Pinterest Ads in one read

Load months of Pinterest Ads results by campaign and week into one session and ask which campaigns drifted. Gemini CLI keeps the whole range in context instead of comparing one month at a time.

Numbers refreshed into Sheets

Gemini CLI writes Pinterest results to a CSV in your folder each time you ask. Import it into the same Google Sheet and the charts there update without anyone copying numbers by hand.

House rules in GEMINI.md

Write your tone, banned phrases and escalation rules for Pinterest 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 Pinterest in 4 steps

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

01

Connect Pinterest

Sign up free and connect a Pinterest account with at least one board in Zernio.

Connect Pinterest

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 Pinterest

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.

Ads

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

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

Pinterest Ads with Zernio

Conversions

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

Pinterest Conversions API: events sent server-side to your ad account.

Conversions API docs

Analytics

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

Per-pin impressions, saves and clicks, plus daily account impressions, engagements, saves, pin clicks and outbound clicks for the last 89 days.

Publishing

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

  • Image pins: one image per pin
  • Video pins: one video per pin, with a custom cover image or a cover frame picked by time
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

Pinterest rules the agent runs into

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

  • Every pin needs exactly 1 image or 1 video; there are no text-only pins, carousels or multi-image posts.
  • Send a boardId on every pin, or it lands on whichever board Pinterest returns first.

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

Each Pinterest 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 Pinterest account with at least one board 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 Pinterest side.

Gemini CLI has a large context window, so months of Pinterest 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.

Impressions, saves and clicks per pin, plus daily account metrics covering every pin on the account, including pins published before connecting. Pinterest serves the last 89 days only.

Give Gemini CLI your Pinterest account

Connect a Pinterest account with at least one board, add Zernio to Gemini CLI, and ask.

  • Pinterest Ads
  • Conversions
  • Analytics
  • Publishing