Tier0 platform command-line tool.
Recommended, cross-platform, requires Node.js >= 16:
npx @tier0/cli@latestThis installs the Go tier0 binary into ~/.tier0/bin/ and installs Agent Skills from FREEZONEX/Tier0-skill.
Global install:
npm install -g @tier0/cli
tier0 --helpRun without global install:
npx @tier0/cli@latest --helpShell installer:
curl -fsSL https://raw.githubusercontent.com/FREEZONEX/Tier0-cli/main/install.sh | bashWindows PowerShell:
iwr https://raw.githubusercontent.com/FREEZONEX/Tier0-cli/main/install.ps1 | iexManual binaries are available from GitHub Releases.
Interactive browser flow:
tier0 loginAgent-friendly flow:
tier0 login --no-wait --json
tier0 login --setup-code <code>Direct API key configuration:
tier0 config --api-key sk-per-xxxxxxPrivate deployment:
tier0 config --base-url http://127.0.0.1:8088
tier0 loginRun config --base-url before login; otherwise the authorization URL may target the wrong instance.
tier0 config
tier0 doctor
tier0 auth whoami --json
tier0 info
tier0 uns browse --path /
tier0 uns read Plant/Line1/Metric/Temperature --json
tier0 uns write --topic Plant/Line1/Metric/Temperature --value '{"temperature":27.5}'
tier0 uns history -t Plant/Line1/Metric/Temperature --start -1h --json
tier0 flow list
tier0 flow nodes --id 1 --json
tier0 flow create --name "modbus-collector" --source --desc "Modbus collector"
tier0 flow data --id 1 --out flows.json
tier0 flow deploy --id 1 -f flows.json --yesflow data --out writes a deployable Node-RED flows array. flow deploy -f
also accepts older full API envelope files and extracts the data.flows array
automatically.
| Type | Meaning |
|---|---|
SourceFlow |
Connects industrial protocols, collects device data, and publishes MQTT / UNS data |
EventFlow |
Processes business data, alarms, transformations, and downstream actions |
Configuration is stored at ~/.tier0/config.json.
Priority:
- Command flags such as
--base-url - Environment variables such as
TIER0_BASE_URL - Config file
- Default
https://tier0.dev
Tier0 CLI output is English-only. The legacy --lang en flag is accepted for compatibility.
| Variable | Meaning |
|---|---|
TIER0_BASE_URL |
Override platform base URL |
TIER0_API_KEY |
Override API key |
TIER0_SKIP_UNINSTALL |
Skip npm uninstall cleanup hook |
npx @tier0/cli@latest uninstall
npx @tier0/cli@latest uninstall --purge
npx @tier0/cli@latest uninstall --keep-skillsGlobal npm uninstall:
npm uninstall -g @tier0/cliManual cleanup:
rm -rf ~/.tier0/bin/tier0 ~/.tier0/skills
npx skills remove FREEZONEX/Tier0-skillRun tests:
go test ./...Skill example validation scans the sibling Tier0-skill/ repository, extracts tier0 ... examples, and validates command paths and flags against the Cobra command tree.
go test ./cmd -run TestSkillExamplesThe npm package and Go binary versions are kept in sync by scripts/release.sh.
export GITHUB_TOKEN=ghp_xxxxxxxx
export NPM_TOKEN=npm_xxxxxxxx
bash scripts/release.sh v0.5.0The release process cross-compiles binaries, uploads GitHub Release assets, updates npm-wrapper/package.json, publishes npm, and packages skills.