Operate Tier0 with Agents
対応エディションEdgeCloudEnterprise
このコンテンツはまだ日本語訳がありません。
Tier0 provides a set of skills and CLI commands for agents to operate on it.
Installing Tier0 Skills
Section titled “Installing Tier0 Skills”Required CLI version:
v0.4.6+
Choose the installer that matches your environment.
With Node.js
Section titled “With Node.js”Use npx when Node.js >= 16 is available to install.
npx @tier0/cli@latestThis runs the full installer and does two things:
- Installs the
tier0CLI binary into~/.tier0/bin/. - Installs Cursor/Claude Agent Skills from
FREEZONEX/Tier0-skill.
Without Node.js
Section titled “Without Node.js”- Install the
tier0CLI binary.
curl -fsSL https://raw.githubusercontent.com/FREEZONEX/Tier0-cli/main/install.sh | bashiwr https://raw.githubusercontent.com/FREEZONEX/Tier0-cli/main/install.ps1 | iex- Install the Agent Skills.
tier0 skills updateWhat the Tier0 Skill Can Do
Section titled “What the Tier0 Skill Can Do”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.
Setting Operating Instance
Section titled “Setting Operating Instance”Private deployments must configure the base URL before login. Once it’s configured, all the following commands will be executed on that instance.
tier0 config --base-url https://your-tier0.example.comLogging In
Section titled “Logging In”- Set the API key for the operating instance.
tier0 config --api-key <api-key>- Verify the API key identity and permissions.
tier0 auth whoami- Perform other operations with the
tier0CLI.
- Start the browser login.
tier0 login --no-wait --json- Go through authentication on the browser by accessing the returned
verification_url. - Poll for the login result with the returned
setup_code.
tier0 login --setup-code <setup_code>| 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 |
Uninstalling Tier0 Skills
Section titled “Uninstalling Tier0 Skills”# 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- Working with UNS Data - How to operate on your UNS model through MQTT and APIs.