CLI

Ta pati paskyra, tie patys kreditai, ta pati darbo erdvė ir tie patys 1,800+ įrankių, kaip subprocesų komandos. Iš apvalkalo nieko neatimta: hermoso call <tool> pasiekia kiekvieną įrankį, kurį atskleidžia MCP serveris, nes abu sukurti iš vieno įrankių rinkinio. CLI egzistuoja, nes terminalo agentas dažnai dirba geriau iškviesdamas mažą komandą, nei nešiodamas 1,800+ įrankių aprašų savo kontekste.

Diegimas

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 naudoja loopback nukreipimą, tą patį modelį kaip gh. Raktas įrašomas į ~/.hermoso/config.json, katalogas yra 0700, o failas 0600.

Kompiuteryje nėra naršyklės? hermoso auth login --device parodo nuorodą ir trumpą kodą, kurį patvirtinti bet kuriame įrenginyje, raktas nereikalingas. CI atveju praleiskite prisijungimą ir naudokite raktą, sukurtą programėlėje. Nelaikykite jo komandų eilutėje, kur jis liktų shell istorijoje: nustatykite jį kaip HERMOSO_TOKEN (nieko neįrašoma į diską) arba perduokite į hermoso auth login --token -, kuris jį nuskaito iš stdin (arba paprašo jo nerodydamas) ir išsaugo.

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 perrašo šaltinį, jei veikiate prieš savo serverį.

Komandos

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

Skriptai

Kiekviena komanda priima --json ir spausdina mašinai suprantamą rezultatą, todėl apvalkalo agentas gali analizuoti, o ne kraipyti. Atvaizdavimai yra užduotys: --wait laukia baigimo ir spausdina baigtą URL; be jo gaunate užduoties ID, kurį patys klausite su hermoso jobs get.

URL=$(hermoso generate image --prompt "…" --wait --json | jq -r '.image')

Įrankis, paleistas pagal pavadinimą, spausdina sakinį, kurį perskaitytų modelis. Pridėkite --structured, kad gautumėte tik jo struktūrizuotą rezultatą, arba paprastą --json visam MCP atsakymui. call komandoje --json '{…}' su objektu yra įrankio argumentai, o įrankis, kuris nepavyksta, baigiasi su nenuliniu kodu.

hermoso billing_status --structured | jq '.balanceCredits'

Ką apima CLI

Pavadinamosios komandos apima įprastą kelią: tyrimą, prekės ženklą, kūrimą, generavimą, konkurentus, konkurentų skelbimus, užduotis. Viskas kita, visi 1,800+ įrankių, įskaitant kampanijų valdymą, analitiką ir publikavimą, veikia per hermoso call <tool> arba paprastą įrankio pavadinimą, su tais pačiais tvarkytojais, argumentų tikrinimais ir patvirtinimo vartais, kuriuos naudoja MCP serveris. hermoso mcp yra tame pačiame binariniame faile, jei norėtumėte įkelti įrankius į savo agentą.

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.