Run ads from the command line

npm install -g hermoso@0.1.712 gives you a scriptable marketing CLI: pull the ads your competitors keep paying for, render an on-brand ad, check your credit balance, and pipe any of it into jq. The same package also serves the full 1,800+ tool MCP server over stdio, so your terminal agent can use whichever surface is cheaper.

Začnite zadarmo →

Vytvorené v Hermoso

Ad tooling is almost entirely dashboards, which makes it almost entirely unautomatable. You cannot cron a dashboard, you cannot pipe a dashboard into jq, and you cannot ask a terminal agent to click one. The Hermoso CLI exists so the ad loop stops being a place you visit and starts being a thing you can script.

Install and sign in:

npm install -g hermoso@0.1.712
hermoso auth login

auth login spins up a loopback listener and opens the browser, the same pattern gh and firebase use, so there's nothing to paste. The minted key is written to ~/.hermoso/config.json with owner-only permissions (directory 0700, file 0600), because it carries real spend authority. For CI, hermoso auth login --token - stores one non-interactively, and HERMOSO_TOKEN / HERMOSO_API_BASE override the config from the environment.

The commands

Every command takes --json, which is the whole point: the human-readable line is a convenience, the JSON is the contract.

CommandWhat it does
hermoso capabilitiesValid model ids and their exact credit costs. Run this first. It is free and read-only, and it is how you stop guessing model names.
hermoso creditsBalance, session usage and recent priced calls.
hermoso brand --domain example.comReads a website into a brand profile (products, palette, logo, voice) that later renders are grounded in.
hermoso competitors --domain example.comDiscovers direct rivals and similar brands worth learning from.
hermoso ads --company "Brand" Pulls that advertiser’s real running ads from the Meta, Google and LinkedIn ad libraries, deduped and sorted.
hermoso research "longest-running protein bar ads"Natural-language ad research across the libraries plus organic TikTok, returning the ads it found.
hermoso create --brand … --product … --format videoTurns a brief into an on-brand ad concept: copy variants plus an image concept or a video storyboard, with the model ids to render it.
hermoso generate image --prompt "…" --ref ./bottle.pngRenders and returns a served URL. --ref composites your real product so the label on screen is your actual SKU.
hermoso jobs / hermoso fetch <url>Inspect renders in flight; resolve any asset to a clickable and a direct-download URL.
hermoso mcpServes the full 1,800+ tool MCP surface over stdio, the same tools the hosted server exposes.

Two surfaces, one package, and why that matters

Terminal agents pay for tools twice: once in the manifest they carry in context, and once in the tokens each call costs. An 1,800+ tool manifest is not free. So the same package ships both surfaces and lets the agent choose:

  • MCP (hermoso mcp, or the hosted https://app.hermoso.ai/mcp) when you want the full surface and rich typed arguments.
  • Subprocess commands when you want the token-cheap path: the agent shells out, reads JSON, and never loads a manifest at all. This is the pattern the bundled Claude skills use.

Both hit the same API, bill the same credits and write to the same library, so nothing is stranded on one side.

Things worth scripting

  • A weekly competitor sweep. hermoso competitors into hermoso ads, diff against last week, and you have a standing report on what your market started and stopped running.
  • Batch creative for a catalogue. Loop over SKUs, render one grounded ad per product, and collect the returned URLs. It's the sort of job that is genuinely tedious in a UI.
  • A credit guard in CI. hermoso credits --json | jq .balance and fail the pipeline before a long batch starts against an empty balance.
  • Cost-aware model selection. hermoso capabilities --json exposes exact per-model costs, so a script can pick the cheapest model that meets the brief instead of hardcoding one.

Publishing and campaigns

The CLI subcommands cover research and creation. Publishing, scheduling and campaign management on Meta, Google Ads, Microsoft Advertising, Reddit Ads, LinkedIn, Pinterest, X Ads, TikTok Ads, Snapchat Ads, ChatGPT Ads, Amazon Ads, Apple Ads, AppLovin Ads and Outbrain live in the MCP surface, reachable from the same package with hermoso mcp, from the hosted endpoint, or from the web studio. Publishing targets are Facebook, Instagram, Threads, TikTok, YouTube, X, LinkedIn, Pinterest, Bluesky, Telegram, Google Business Profile, WordPress, Webflow, Wix, Shopify Blog, Discord, Slack and Whop.

Čo nerobí bez opýtania

Agent s rozpočtom je užitočný len vtedy, ak je dosah jeho chýb ohraničený, preto je právomoc výdavkov uzavretá na serveri, a nie v prompte. Meta kampane, reklamné sady a reklamy sa vytvárajú PAUSED bez možnosti, že by volajúci niečo prepísal. Prepínače stavu, ktoré môžu zapnúť reálne výdavky (jeden na každej reklamnej platforme: set_meta_campaign_status, set_google_ads_status, set_microsoft_ads_status, set_reddit_ads_status, set_linkedin_ads_status, set_pinterest_ads_status, set_x_ads_status a set_openai_ads_status, medzi inými), všetky odmietnu bežať bez výslovného potvrdzujúceho príznaku, a rovnaká brána platí pre vytvorenie zapnutej reklamnej skupiny, reklamy alebo kľúčového slova v Google Ads pod už zapnutým nadradeným prvkom, pretože by sa zobrazilo pri ďalšej aukcii. Mazanie je tiež chránené potvrdením. Na strane generovania hermoso_capabilities zverejňuje presnú cenu v kreditoch každého modelu skôr, než sa čokoľvek spustí, a každý render rezervuje odhad a potom zúčtuje skutočnú cenu, takže neúspešné odoslanie vráti peniaze namiesto tichého účtovania.

Working inside an agent rather than a shell? See Claude Code marketing automation and the full MCP & CLI reference.

Často kladené otázky

Is there a command-line tool for running ads?

Yes. npm install -g hermoso@0.1.712 installs the Hermoso CLI, which researches competitor ads across the Meta, Google and LinkedIn ad libraries, drafts a brand profile from a website, plans and renders image and video ads, and reports credits and jobs, with --json output on every command for scripting. The same package also serves the full 1,800+ tool MCP server over stdio.

How do I authenticate the Hermoso CLI?

Run hermoso auth login. It opens a loopback browser sign-in (the same pattern gh and firebase use) and stores the minted key at ~/.hermoso/config.json with owner-only permissions (directory 0700, file 0600). For CI, hermoso auth login --token - stores one non-interactively, and HERMOSO_TOKEN and HERMOSO_API_BASE override the config from the environment.

Can I pipe the output into jq?

Yes. Every command accepts --json and prints a structured object. That is the intended contract; the human-readable line is just a convenience. hermoso credits --json | jq .balance is a useful CI guard before a long render batch.

Why use the CLI instead of the MCP server?

Token cost. An MCP client loads the tool manifest into context, and 1,800+ tools are not free. A terminal agent that shells out to subprocess commands and reads JSON carries no manifest at all. Both surfaces hit the same API, bill the same credits and write to the same library, so you can mix them.

Can the CLI publish to Facebook or manage Meta ads?

Publishing, scheduling and campaign management on Meta, Google Ads, Microsoft Advertising, Reddit Ads, LinkedIn, Pinterest, X Ads, TikTok Ads, Snapchat Ads, ChatGPT Ads, Amazon Ads, Apple Ads, AppLovin Ads and Outbrain live in the MCP surface rather than the CLI subcommands, reachable from the same package by running hermoso mcp, from the hosted endpoint at https://app.hermoso.ai/mcp, or from the web studio. Publishing targets are Facebook, Instagram, Threads, TikTok, YouTube, X, LinkedIn, Pinterest, Bluesky, Telegram, Google Business Profile, WordPress, Webflow, Wix, Shopify Blog, Discord, Slack and Whop.

Does it work against a local server?

Yes. Set HERMOSO_API_BASE to your own origin (for example http://localhost:3000) and the CLI and MCP server both target it. A localhost base needs no auth token.

Súvisiace

Renderovania bežia ako úlohy na strane servera, ktoré sa sledujú, a opakovane odoslaný príspevok je bezpečný, aj keď výsledok prvého pokusu nie je známy. Podrobnosti sú v úlohách a idempotencii.

Setting it up inside Claude Code instead? See Claude Code marketing.

Install the CLI, sign in from your browser, and your first competitor sweep is one command away. Free account, 165 free credits, no card.

Začnite zadarmo →   Prečítajte si dokumentáciu MCP →