CLI preview
One binary, one contract.
The zero binary does from the command line what the console does on screen — and returns the result as JSON, with stable exit codes, so your pipeline can decide on its own.
Five compiled targets · SHA-256 published next to every file · no installer and no package manager.
1Install
There is no installer, no package manager and no script to pipe into the shell. It is two files: the one for your system and the SHA-256 list. Check the sum before extracting — it is the only way to know the binary is the one the platform published.
macOS
curl -fsSLO https://zero.nnumbers.com.br/downloads/zero-darwin-arm64.tar.gz curl -fsSLO https://zero.nnumbers.com.br/downloads/SHA256SUMS shasum -a 256 -c SHA256SUMS --ignore-missing tar -xzf zero-darwin-arm64.tar.gz && sudo mv zero /usr/local/bin/
Intel Mac: replace darwin-arm64 with darwin-amd64.
Linux
curl -fsSLO https://zero.nnumbers.com.br/downloads/zero-linux-amd64.tar.gz curl -fsSLO https://zero.nnumbers.com.br/downloads/SHA256SUMS sha256sum -c SHA256SUMS --ignore-missing tar -xzf zero-linux-amd64.tar.gz && sudo mv zero /usr/local/bin/
ARM: replace linux-amd64 with linux-arm64.
Windows
Invoke-WebRequest https://zero.nnumbers.com.br/downloads/zero-windows-amd64.zip -OutFile zero-windows-amd64.zip Get-FileHash .\zero-windows-amd64.zip -Algorithm SHA256 # compare with the file's line in SHA256SUMS Expand-Archive .\zero-windows-amd64.zip -DestinationPath .\zero
Preview. There is no stable release, and the version is the commit date: zero version prints zero 2026-11-11+b5743f6 (b5743f6…). A local build comes out as desenvolvimento.
2Sign in
zero auth login asks one thing only: the e-mail. The identity provider is discovered from it, using the same rule the console uses. Approval happens in the browser, through a device login with a code — the CLI never asks for your password.
The session is encrypted (AES-256-GCM) and the key lives in the system keyring — the macOS one, the Linux desktop one or the Windows one. With no keyring available, the file is written with 0600 permission, and zero auth status tells you which of the two cases is yours.
For automation there are two paths, and neither stores a secret in a configuration file:
- Device login in machine mode:
zero auth login --device --jsonemits two JSON objects, one per line — firstpending, thenapproved,deniedorexpired. The token never passes through there. - Application credential:
ZERO_TOKEN=zcred_…in the environment. It is not written and not renewed by the CLI — you renew it in the console, under Members → Credentials.
zero auth login # e-mail only; approval opens in the browser zero auth status # whose session, until when, where the key lives zero auth logout zero auth login --device --json # machine mode: pending then approved|denied|expired
The CLI talks to https://api.zero.nnumbers.com.br; the address is built into the binary.
3The full path
From the session to the live address, in this order. projects create already brings the production environment; services create records the intent, and deploy is what publishes. The origin token comes in through standard input, never as an argument.
zero auth login # e-mail only; approval opens in the browser zero orgs list && zero orgs use acme PROJ=$(zero projects create loja) # the production environment comes with it zero source set "$PROJ" --provider bitbucket --repo acme/loja --ref main --token zero flavors list SVC=$(zero services create web --env env_… --flavor small --subdir apps/web) zero deploy "$SVC" # 202 and an operation; tracked as a stream zero status "$PROJ"; zero logs "$SVC" --build; zero releases "$SVC"
4The commands
One line per top-level command. What is idempotent is marked in the machine contract.
| Command | What it does |
|---|---|
| projects | list · create · get · delete · network · exposure · kind. --internal creates it without a public address. |
| services | list · create · get · resize · internal-name · capabilities · enable · disable · doctor. |
| environments | list · create · get · route · network — the environment and how far the route proof got. |
| source | get · set · disconnect — the project origin: --provider github|gitlab|bitbucket, --repo, --ref, token through standard input, or --zero for the Zero Git. |
| deploy | Publishes and follows the stream. --ref and --subdir only adjust the origin. |
| promote | --from: moves the same digest to another environment without rebuilding. |
| rollback | --to: returns to an eligible release by creating a new one. |
| logs | Application log: --follow, --level, --search, --from 30m|24h|7d, --all, --json. |
| status · releases · artifacts | The service state, the release history with the rollback target, and the artifacts by digest. |
| security | Scan summary; --findings opens the findings by severity. |
| operations | get — the state of an asynchronous operation. |
| domains | list · canonical — the project domains and the canonical address. |
| flavors | list · get — the catalogue of instance sizes. |
| config | list · effective · set · unset — value always through --value-stdin, never as an argument. |
| networks · entries | The network between projects and the internal entries at the edge. |
| private-connection · private-endpoints | Private Connect, when the organization has the capability enabled. |
| pr | list · show · create · merge · close — change requests in the Zero Git. |
| access | get · update · revoke · resend-notification — access for people. The accounts belong to the identity provider, in the console. |
| orgs | list · use · current · capabilities · integrations — the organization in scope and what is enabled there. |
| auth · git · version · capabilities | Session, Zero Git setup, the version with its revision, and the machine contract as JSON. |
5Machine contract
Whoever calls the CLI from inside a pipeline should not parse prose. zero capabilities --json describes what this version knows how to do; --json is available on the read commands; and errors come out as an object with code, http_status and request_id — the identifier that lets you open a ticket with the exact case.
- Exit codes from 0 to 12 and 130:
0is success;130appears when the process is interrupted. zero version --jsonreturnsversao,revisao,contractandcontract_version.- The revision in
zero versionis the commit that produced the binary — it ties binary and code together.
zero version # zero 2026-11-11+b5743f6 (b5743f664511…) # contrato de máquina: <nome> v<n> zero version --json # versao, revisao, contract, contract_version zero capabilities --json # what this version knows how to do
The version is not semantic. The format is the commit date plus seven characters of the SHA, so two publications on the same day differ. Compare versions by equality, not by order.
Download the binary for your system.
Five compiled targets, with size and SHA-256 published next to every file.