Exit codes
Documented exit codes, for example 8 when a comparison or a check fails.
Main features
More
Command line
Everything you set up in the app also runs headless: simulate devices on a test server, record a night shift, replay into staging, and fail your pipeline when the output or the topic documentation doesn't match.
# Run a simulated plant for 8 hours
> mqttstudio simulate -p "Demo factory" --duration 8h
# Keep the last 15 minutes, save them when an alarm arrives
> mqttstudio record -p "Plant" -t "plant/#" --flight 15m --save-when "plant/+/alarm"
# Compare two runs, ignoring the ts field
> mqttstudio recordings compare reference.mqttrec run-42.mqttrec --ignore '$.ts'
# Export the topic documentation as AsyncAPI
> mqttstudio doc export -p "Plant" --format asyncapi-yaml --out asyncapi.yaml
>
Commands
They use the projects you saved in the app. App and command line can run at the same time.
| Command | What it does |
|---|---|
projects list, projects show | Lists the saved projects and shows one. |
simulate | Runs a project's simulation or some devices: duration, rate limit, seed for repeatable payloads, dry run, clear retained at the end. Includes recorded devices, VDA 5050 robots and Sparkplug edge nodes. |
record | Topic filters with QoS and exclusions, start and stop conditions with pre- and post-roll, flight recorder, limits. |
replay | Speed, loop, range, gap compression, topic remapping, many instances, retained snapshot, retain and QoS overrides. |
recordings | list, show, export, import, edit, compare. Compare writes a JSON report. |
doc | discover, check, export, import, with --preset vda5050-v2|vda5050-v3 for the VDA 5050 documentation. |
In scripts and CI
Regression tests compare a run against a reference recording, and a documentation check catches devices that changed.
Documented exit codes, for example 8 when a comparison or a check fails.
Text output, or -o json with one JSON object per line. Quiet and verbose modes.
Only from environment variables, never from the command line.
Host or WebSocket URL, port, client id, user name, TLS, CA, client certificate and key, per run.
Ctrl+C stops cleanly and saves what was recorded.
Installed with the desktop app on Windows and macOS. Not in the browser version.
Every command and option is in the command line manual.