@zurb/cli
v0.5.0
Published
One command for every ZURB tool, starting with Studios and Clue.
Readme
@zurb/cli
One command for every ZURB tool. It starts with Studios and Clue.
npm install -g @zurb/cli # Node 22 or later
zurb login # approve in the browser, signed in to Studios
zurb --help # what you can run
zurb guide # how to use it, for people and agents
zurb clue find "why do trial users stall?"
zurb studios customers list --output jsonCommands are shaped zurb <tool> <thing> <action>. The CLI only holds login, logout, update and helio. Every
other command, and the help that lists it, comes from Studios. That has two effects:
- A new command needs a Studios deploy, not a CLI release.
- People only see what they can run.
admin …commands exist only for platform admins.
Helio
zurb helio … runs Helio's own command line, @zurb/helio-cli,
which comes installed with zurb. Everything after zurb helio goes to it unchanged, with the same
output and exit code, so Helio's commands live in one place.
zurb helio auth login # set up your Helio API keys
zurb helio guide # how to run Helio tests from the command line
zurb helio tests list
zurb helio --help # every Helio commandHelio signs in with its own API keys (or HELIO_API_ID and HELIO_API_TOKEN), separately from
zurb login. zurb update keeps it current along with zurb.
Staying current
Once a day zurb checks npm for a newer version in the background, without slowing the command
down, and says so on stderr when there is one. stdout stays clean, so --output json still parses.
zurb update # install the latest zurb and helio-cli (npm install -g @zurb/cli@latest)
zurb update --check # only say whether there's a newer oneZURB_NO_UPDATE_CHECK=1 turns the check off, and it's off when CI is set. If zurb came from pnpm,
volta, yarn or npx, zurb update names the command that updates that install instead.
Signing in
zurb login works like this:
- It starts a server on
127.0.0.1and opens Studios'/cli/login. - You approve there, and the page hands a one-time code back to that server.
- The CLI trades the code, with a PKCE verifier only it holds, for a personal token.
The token lasts 30 days, acts as you, and is stored at ~/.zurb/config.json (mode 600). Studios
keeps only its hash. zurb logout revokes it.
That token only reads. Commands that change data need zurb login --write. Only platform admins
can approve that sign-in, and it lasts a day.
For scripts and CI, set ZURB_TOKEN.
Input
- Positional words fill the command's arguments in order.
--key valuefills the rest, using the command's schema.--json '{…}'or--json @file.jsongives all the input at once.--output jsonprints the data for scripts and agents.--customercan be left off when you have one customer.
