Skip to main content

CLI Reference

ROS2 Inspector v0.1.0 ships seven commands for static workspace discovery, architecture visualization, auditing, and policy enforcement.

Global usage

ros2inspector [OPTIONS] COMMAND [ARGS]...

Commands

CommandPurpose
scanDiscover packages and show workspace health
packagesInspect package metadata and dependencies
nodesList statically detected nodes and endpoints
graphRender dependency, communication, or full graphs
vizGenerate a self-contained interactive HTML graph
auditRun built-in connectivity and isolation checks
validateEnforce a YAML architecture policy

Global options

OptionPurpose
--version, -vPrint the installed version and exit
--quiet, -qSuppress diagnostic headers and progress output
--helpShow command help

Output formats

  • scan, packages, nodes, audit, and validate: table, JSON, or YAML where documented.
  • graph: Mermaid, GraphViz DOT, or JSON.
  • viz: self-contained HTML.

Exit codes

CodeMeaning
0Command completed and no configured failure threshold was reached
1audit or validate found results at or above --fail-on
2Invalid invocation or invalid policy configuration
3Workspace packages or the requested policy file could not be found