← 返回
安全合规 中文

This skill informs the agent how to use Viam CLI

Provides comprehensive guidance and commands to install, authenticate, and manage Viam CLI for robotics fleets, modules, machine data, datasets, and ML workf...
提供全面的指导与命令,帮助安装、认证并管理 Viam CLI,涵盖机器人车队、模块、机器数据、数据集以及机器学习工作流。
hexbabe
安全合规 clawhub v1.0.0 1 版本 99871.5 Key: 无需
★ 0
Stars
📥 777
下载
💾 10
安装
1
版本
#latest

概述

Comprehensive Viam CLI Management Skill

This skill allows the agent to interact with the Viam robotics platform across all available CLI surfaces, including initial setup, deployment, data management, and the local developer loop.

Security & Scoping Guardrails

  • No hardcoded credentials: Never ask the user to paste an API key or Token into the chat. Rely on OpenClaw's environment variable injection. If unauthenticated, instruct the user to run viam login in their secure terminal.
  • Read-first approach: Always prefer listing resources (e.g., list, describe) before attempting mutations or deletions.
  • Destructive operations: Always confirm with the user before running any delete command across datasets, data pipelines, or machine data.

Initialization & Installation (First-Time Setup)

Before attempting to run any viam commands, verify if the CLI is installed by running viam version or checking the system path.

If the viam CLI is NOT installed:

  1. STOP and ask for permission: You must explicitly ask the user: "The Viam CLI is not installed on your system. Would you like me to install it via Homebrew?"
  2. Execute Installation (Upon Approval Only): If the user grants permission, run the following commands sequentially:
    • brew tap viamrobotics/brews
    • brew install viam
  3. Verify: Once installed, run viam version to confirm success, then instruct the user to run viam login to authenticate.

Complete Viam CLI Command Reference

Authentication & Profiles

  • viam login - Authenticates the session (opens a browser or returns a URL).
  • viam login api-key --key-id --key - Authenticates non-interactively via API key.
  • viam logout - Logs out of the current Viam session.
  • viam whoami - Displays the current authenticated profile/user.
  • viam profiles - Manages local CLI profiles.

Organizations & Locations

  • viam organizations list - Lists all organizations the user has access to.
  • viam locations list - Lists locations belonging to an organization.

Fleet & Machine Management (Aliases: machine, robots)

  • viam machines list - Lists all machines in an organization/location.
  • viam machines logs - Retrieves logs from a specific machine for debugging.
  • viam machines api-key create - Generates a new machine part API key for programmatic access.
  • viam machines part shell --organization= --location= --machine= - Opens a remote shell to a specific machine part (Requires the ViamShellDanger fragment on the machine).
  • viam machines part cp - Copies files to/from a remote machine over Viam's WebRTC tunnel.

Modules, Hot-Reloading, & Registry

  • viam module generate - Interactively scaffolds a new module. Can bypass prompts using flags.
  • viam module reload --part-id - (Hot Reloading) Bundles local module code, deploys it to the target machine via WebRTC, registers it as a local module, and restarts it.
  • viam module local-app-testing --app-url - Tests a custom Viam web application locally against machine data.
  • viam module create - Creates the module entity in the Viam cloud registry.
  • viam module upload --version --platform - Bundles and uploads a finished module to the Viam Registry.
  • viam packages - Manages individual software packages.

Machine Data (Uploads, Syncs, & Databases)

  • viam data export tabular - Exports sensor/tabular data to a specified destination.
  • viam data export binary - Exports image/binary data to a specified destination.
  • viam data delete tabular - Deletes tabular data from the Viam Cloud.
  • viam data delete binary - Deletes binary data from the Viam Cloud.
  • viam data tag - Adds or removes tags from data matching specific IDs.
  • viam data database configure - Creates/modifies a database user for MongoDB Atlas Data Federation.
  • viam data database hostname - Retrieves the MongoDB Atlas Data Federation hostname.

Datasets (For Machine Learning)

  • viam dataset create - Creates a new dataset.
  • viam dataset rename - Renames an existing dataset.
  • viam dataset list - Lists datasets for an organization or by specific IDs.
  • viam dataset delete - Deletes a specified dataset.
  • viam dataset data add - Adds images/binary data to a dataset.
  • viam dataset data remove - Removes images/binary data from a dataset.
  • viam dataset export - Downloads all data contained within a dataset.

Data Pipelines (Precompute & Transformations)

  • viam datapipelines create - Creates a new data pipeline.
  • viam datapipelines describe - Gets detailed information about a specific data pipeline.
  • viam datapipelines delete - Deletes a data pipeline.
  • viam datapipelines enable - Resumes executing a disabled data pipeline.
  • viam datapipelines disable - Stops executing a data pipeline without deleting it.
  • viam datapipelines list - Lists all data pipelines in an organization.

Machine Learning (Training & Inference)

  • viam train - Initiates an ML model training job in the Viam cloud.
  • viam training-script - Manages scripts utilized during custom ML training runs.
  • viam infer - Runs quick inferences against a model directly from the CLI.

Metadata & Diagnostics

  • viam metadata - Retrieves metadata related to the Viam configuration or platform state.
  • viam parse-ftdc - Parses Full-Time Data Capture (FTDC) diagnostic data files generated by viam-server.
  • viam version - Prints the currently installed version of the Viam CLI.

⚠️ Fallback & Troubleshooting Protocol (CRITICAL)

The Viam platform evolves rapidly. If any viam command fails, returns a syntax error, or complains about an unrecognized flag, you MUST adhere to the following fallback protocol:

  1. Read the local help text: Immediately run --help on the failing command or subcommand (e.g., viam module reload --help or viam datapipelines --help) to read the exact syntax required by the user's installed binary.
  2. Suggest an Upgrade: If a requested root command or feature does not exist locally, the user is likely running an outdated version. Advise them to upgrade by explicitly asking for permission to run brew upgrade viam.
  3. Do not hallucinate flags: Never guess a flag or command structure. Always defer to the local CLI's help output if execution fails.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 21:45 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,466
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,605
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,714