CLI
Isti račun, isti krediti, isti radni prostor i isti 1,800+ alata, kao podprocesne naredbe. Ništa nije zadržano od ljuske: hermoso call <tool> dosiže svaki alat koji MCP poslužitelj izlaže, jer su oba izgrađena iz jednog skupa alata. CLI postoji jer terminalni agent često bolje radi pozivajući malu naredbu nego nošenjem 1,800+ definicija alata u svom kontekstu.
Instalacija
npm install -g hermoso@0.1.712
hermoso auth login # opens a browser, stores the key locally
hermoso capabilities # free: valid model ids and exact costs
The same package ships the stdio MCP server, so npx -y hermoso@0.1.712 mcp and hermoso are one install.
In a coding agent you do not need to install it by hand. One command (claude plugin install hermoso@hermoso in Claude Code after claude plugin marketplace add hermoso-ai/hermoso, or npx skills add hermoso-ai/hermoso for Cursor and most others) adds five skills that run this CLI through npx -y hermoso@0.1.712. Every agent’s command is in the Quickstart.
Autentifikacija
hermoso auth login koristi loopback preusmjeravanje, po uzoru na gh. Ključ se zapisuje u ~/.hermoso/config.json, s direktorijem na 0700 i datotekom na 0600.
Nema preglednika na računalu? hermoso auth login --device ispisuje poveznicu i kratki kod za odobravanje na bilo kojem uređaju, bez ključa. Za CI preskoči prijavu i koristi ključ koji si stvorio u aplikaciji. Drži ga podalje od naredbenog retka, gdje bi ostao u povijesti ljuske: postavi ga kao HERMOSO_TOKEN (ništa se ne zapisuje na disk) ili ga proslijedi u hermoso auth login --token -, koji ga čita sa standardnog ulaza (ili traži bez prikazivanja) i sprema.
HERMOSO_TOKEN="$HERMOSO_KEY" hermoso capabilities # from your CI secret store; nothing written to disk
printf '%s' "$HERMOSO_KEY" | hermoso auth login --token - # or store it once, read from stdin
For a script or agent that should only read (reports, results, the schedule), create the key as Read-only in the app and pass it the same way. Every command that would post, schedule, change an ad or spend credits is then refused with key_read_only. See Read-only keys.
HERMOSO_API_BASE nadjačava izvor ako radiš protiv vlastitog poslužitelja.
Naredbe
hermoso capabilities # model ids + exact credit costs (free)
hermoso credits # balance (free)
hermoso brand # the saved brand profile
hermoso create --brand "Acme" --product "the best seller" --format image
hermoso generate image --prompt "…" --ref ./product.png --wait
hermoso generate video --prompt "…" --duration 8 --wait
hermoso competitors acme.com
hermoso research "Liquid Death's longest-running ads"
hermoso ads pull --company "Acme" # a competitor's running ads
hermoso jobs list | hermoso jobs get <id>
hermoso fetch <url> # pull media in from a link
hermoso mcp # run the stdio MCP server
# every other tool, by name
hermoso tools --search "google ads" # find one
hermoso tools list_google_ads_campaigns # its arguments
hermoso call list_google_ads_campaigns --json '{}' # run it
hermoso list_google_ads_campaigns # the same, shorter
Skriptiranje
Svaka naredba prima --json i ispisuje rezultat čitljiv strojevima, pa shell agent može parsirati umjesto strugati. Renderi su poslovi: --wait ispituje do završetka i ispisuje gotov URL; bez njega dobiješ ID posla koji sam ispituješ s hermoso jobs get.
URL=$(hermoso generate image --prompt "…" --wait --json | jq -r '.image')
Alat pokrenut po imenu ispisuje rečenicu koju bi model čitao. Dodaj --structured za samo njegov strukturirani rezultat ili goli --json za cijeli MCP odgovor. Na call, --json '{…}' s objektom su argumenti alata, a alat koji ne uspije izlazi s vrijednošću različitom od nule.
hermoso billing_status --structured | jq '.balanceCredits'
Što CLI pokriva
Imenovane naredbe pokrivaju uobičajeni put: istraživanje, brend, kreiranje, generiranje, konkurenti, oglasi konkurenata, poslovi. Sve ostalo, svih 1,800+ alata uključujući upravljanje kampanjama, analitiku i objavljivanje, radi kroz hermoso call <tool> ili goli naziv alata, s istim rukovateljima, provjerama argumenata i potvrdnim vratima kao MCP poslužitelj. hermoso mcp je u istom binarnom paketu ako radije želiš učitati alate u svog agenta.
Every command in these docs names an exact release (hermoso@0.1.712), so your agent runs the version the docs were written for, not whatever npm serves that day. A release check in the repo asserts the shipped tool surface and the package version move together, so npx cannot quietly serve a build older than the tools documented here.