CLI Reference
All commands, flags, and expected output for traverse-cli.
Installation
Build the CLI from the workspace. No separate install step needed.
The binary is at target/debug/traverse-cli after building. Use cargo run -p traverse-cli -- during development to build and run in one step.
Global flags
These flags work with any command.
| Flag | Description |
|---|---|
| --help | Print help text for any command. Works at the top level and on each subcommand. |
| --version | Print the CLI version and exit. |
bundle inspect <path>
Inspect a registry bundle. Prints the bundle name, version, and all capabilities found in the manifest. Validates the manifest format without executing anything.
| Argument / Flag | Type | Description |
|---|---|---|
| <PATH> | path | Path to the bundle directory. Must contain a manifest.json. |
| --verbose | flag | Print full contract details for each capability. |
browser-adapter serve
Start the local browser adapter. This is an HTTP server that sits between your React app and the Traverse runtime. It exposes a /execute endpoint and a /health endpoint. The adapter loads the specified bundle at startup.
| Flag | Type | Default | Description |
|---|---|---|---|
| --bind | string | 127.0.0.1:4174 |
Address and port to listen on. |
| --bundle | path | default bundle | Path to the bundle directory to load at startup. |
The adapter runs until you stop it with Ctrl-C. It does not hot-reload bundles. Restart after any bundle changes.
register <bundle> not yet available
Register a bundle with a remote registry. This command will push the bundle manifest and WASM binaries to a registry endpoint and index all capabilities for remote discovery.
Planned for a future release. Track progress on GitHub.
list not yet available
List all capabilities registered with a remote registry. Will output capability IDs, versions, and available targets in a table.
Planned for a future release.
validate <contract> not yet available
Validate a single contract file against the Traverse contract schema. Will report any missing required fields, type mismatches, or invalid constraint declarations.
Planned for a future release.
run <capability-id> not yet available
Execute a capability directly from the CLI. Will load the bundle, run the capability with the provided inputs, and print the trace artifact to stdout.
Planned for a future release.