<p align="center">
<strong>clankers-cli</strong><br>
<em>Command-line interface for clankeRS</em>
</p>
<p align="center">
<a href="https://crates.io/crates/clankers-cli"><img src="https://img.shields.io/static/v1?label=crates.io&message=v0.1.6&color=orange&style=flat-square" alt="crates.io"></a>
<a href="https://docs.rs/clankers-cli"><img src="https://docs.rs/clankers-cli/badge.svg?style=flat-square" alt="docs.rs"></a>
<a href="https://github.com/PvRao-29/clankeRS/blob/main/LICENSE"><img src="https://img.shields.io/crates/l/clankers-cli.svg?style=flat-square" alt="MIT license"></a>
</p>
<p align="center">
<a href="https://crates.io/crates/clankers">clankeRS SDK</a> ยท
<a href="https://github.com/PvRao-29/clankeRS">GitHub</a>
</p>
---
Scaffold projects, replay MCAP logs, validate ONNX models, and run the camera-perception demo โ the `clankers` binary for day-to-day robotics workflows.
## Install
```bash
cargo install clankers-cli
```
Templates for `clankers new` are bundled in the crate โ no repo clone required.
```bash
clankers --help
```
## Quick start
```bash
# New project from a template (works from any directory)
clankers new my_robot --template perception-node
cd my_robot
clankers run
# Inspect and replay your own MCAP log
clankers inspect path/to/camera_log.mcap
clankers replay path/to/camera_log.mcap
# Validate ONNX against stored PyTorch references
clankers validate-model \
--onnx models/detector.onnx \
--samples path/to/inputs/
# Golden-path demo (requires a repo clone for sample_data/)
git clone https://github.com/PvRao-29/clankeRS.git && cd clankeRS
clankers demo camera-perception
```
## Commands
| `new` | Scaffold from `basic-node`, `perception-node`, `ml-inference-node`, or `replay-test-node` |
| `run` | Run the current project's node |
| `test` | Run replay tests and `cargo test` |
| `inspect` | Summarize an MCAP file |
| `replay` | Replay a log (optionally through a node) |
| `latency` | Latency stats from a replay |
| `compare` | Diff two MCAP files |
| `validate-model` | ONNX vs PyTorch reference outputs |
| `bench` | Benchmark inference latency and copy/allocation stats |
| `import-pytorch` | Export a checkpoint to ONNX |
| `add-model` | Register a model in `clankeRS.toml` |
| `visualize` | MCAP summary for Foxglove / Rerun |
| `demo` | Run bundled demos (`camera-perception`) |
| `record` | Run the node with MCAP recording enabled (Ctrl-C finalizes the file) |
## Learn more
- [Getting started](https://github.com/PvRao-29/clankeRS/blob/main/docs/getting_started.md)
- [Installation](https://github.com/PvRao-29/clankeRS/blob/main/docs/installation.md)
- [Camera perception tutorial](https://github.com/PvRao-29/clankeRS/blob/main/docs/camera_perception_tutorial.md)
## License
MIT โ see [LICENSE](https://github.com/PvRao-29/clankeRS/blob/main/LICENSE).