CLI
Isti nalog, isti krediti, isti radni prostor i isti 1,800+ alata, kao podprocesne komande. Ništa nije skriveno od shell-a: hermoso call <tool> dopire do svakog alata koji MCP server izlaže, jer su oba izgrađena iz jednog skupa alata. CLI postoji zato što terminalni agent često radi bolje kada pozove malu komandu nego kada nosi 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 redirect, isti obrazac kao gh. Ključ se upisuje u ~/.hermoso/config.json, sa direktorijumom na 0700 i fajlom na 0600.
Nema pregledača na mašini? hermoso auth login --device ispisuje link i kratak kod za odobravanje na bilo kom uređaju, bez ključa. Za CI preskočite prijavu i koristite ključ koji ste napravili u aplikaciji. Držite ga van komandne linije, gde bi ostao u istoriji shell-a: postavite ga kao HERMOSO_TOKEN (ništa se ne upisuje na disk), ili ga prosledite cevi do hermoso auth login --token -, koji ga čita sa stdin-a (ili traži bez prikazivanja) i čuva.
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 menja origin ako radite protiv sopstvenog servera.
Komande
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
Skriptovanje
Svaka komanda prima --json i ispisuje rezultat čitljiv mašini, pa shell agent može da parsira umesto da struže. Renderi su poslovi: --wait čeka do kraja i ispisuje gotov URL; bez njega dobijate ID posla koji sami pratite sa hermoso jobs get.
URL=$(hermoso generate image --prompt "…" --wait --json | jq -r '.image')
Alat pokrenut po imenu ispisuje rečenicu koju bi model pročitao. Dodajte --structured za samo njegov strukturisani rezultat, ili goli --json za ceo MCP odgovor. Na call, --json '{…}' sa objektom su argumenti alata, a alat koji ne uspe izlazi sa vrednošću različitom od nule.
hermoso billing_status --structured | jq '.balanceCredits'
Šta CLI pokriva
Imenovane komande pokrivaju uobičajen put: istraživanje, brend, kreiranje, generisanje, konkurenti, oglasi konkurenata, poslovi. Sve ostalo, svih 1,800+ alata uključujući upravljanje kampanjama, analitiku i objavljivanje, ide kroz hermoso call <tool> ili goli naziv alata, sa istim handlerima, proverama argumenata i kapijama potvrde koje koristi MCP server. hermoso mcp je u istom binarnom fajlu ako radije učitate 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.