跳转到内容

Operate Tier0 with Agents

适用版本EdgeCloudEnterprise

此内容尚不支持你的语言。

Tier0 provides a set of skills and CLI commands for agents to operate on it.

Required CLI version: v0.4.6+

Choose the installer that matches your environment.

Use npx when Node.js >= 16 is available to install.

Terminal window
npx @tier0/cli@latest

This runs the full installer and does two things:

  • Installs the tier0 CLI binary into ~/.tier0/bin/.
  • Installs Cursor/Claude Agent Skills from FREEZONEX/Tier0-skill.
  1. Install the tier0 CLI binary.
Terminal window
curl -fsSL https://raw.githubusercontent.com/FREEZONEX/Tier0-cli/main/install.sh | bash
  1. Install the Agent Skills.
Terminal window
tier0 skills update

The Tier0 Skill gives agents a structured way to choose the right CLI command, read the matching reference, and operate Tier0 through the tier0 CLI.

Private deployments must configure the base URL before login. Once it’s configured, all the following commands will be executed on that instance.

Terminal window
tier0 config --base-url https://your-tier0.example.com
  1. Set the API key for the operating instance.
Terminal window
tier0 config --api-key <api-key>
  1. Verify the API key identity and permissions.
Terminal window
tier0 auth whoami
  1. Perform other operations with the tier0 CLI.
Target Task Commands
Basic operations Check CLI and service health tier0 doctor
Basic operations Check service connectivity and gateway info tier0 api /openapi/v1/info --body '{}' --json
Basic operations Upgrade CLI and skills tier0 upgrade and tier0 skills update
UNS Browse paths tier0 uns browse --path / or tier0 uns browse --path Plant/Line1 --json
UNS Search for topics by keywords tier0 uns search --keyword temp --json or tier0 uns search --path-prefix Plant/Line1 --size 50 --json
UNS Read current values tier0 uns read Plant/Line1/Metric/Temperature --json or tier0 uns read --topic 'Plant/+/Metric/Temperature' --json
UNS Write values tier0 uns write --topic Plant/Line1/Metric/Temperature --value '{"temperature":27.5}'
UNS Query history tier0 uns history -t Plant/Line1/Metric/Temperature --start -1h --json
UNS Create paths or topics tier0 uns create --topic Plant/Line1 --type path or tier0 uns create --file namespace.json --json
UNS Update metadata or fields tier0 uns update --path Plant/Line1/Metric/Temperature --description "Line 1 temperature" --update-mask description
UNS Delete or restore nodes tier0 uns delete --path Plant/Line1/Metric/Temperature --yes or tier0 uns restore --path Plant/Line1/Metric/Temperature --yes
Node-RED Flow List or inspect Flows tier0 flow list, tier0 flow list --source --json, or tier0 flow get --id 1 --json
Node-RED Flow Create Source Flow or Event Flow tier0 flow create --name "modbus-collector" --source --desc "Modbus TCP collector" or tier0 flow create --name "alert-handler" --event --desc "Temperature alarm processor"
Node-RED Flow Update Flow metadata tier0 flow update --id 1 --name "line1-collector" or tier0 flow update --id 1 --favorite
Node-RED Flow Export canvas JSON tier0 flow data --id 1 --out flows.json
Node-RED Flow Deploy canvas JSON tier0 flow deploy --id 1 -f flows.json --yes
Node-RED Flow Delete Flows tier0 flow delete --id 1 --yes
Node-RED Flow Check available node types tier0 flow nodes --source --json or tier0 flow nodes --event --json
Terminal window
# Remove the Tier0 CLI while keeping local configuration.
npx @tier0/cli@latest uninstall
# Remove the Tier0 CLI and delete local configuration, credentials, skills, and cache.
npx @tier0/cli@latest uninstall --purge