We have added several new subcommands to pvr device that make it much easier to inspect device state and track deployments from the command line.
New Commands
pvr device status
Shows the current step status of a device (without the bulky state blob). Defaults to the running revision from device-meta.pantavisor.revision.
pvr device status labslave_var-som-mx8mn
pvr device status labslave_var-som-mx8mn --rev=4
pvr device steps
Lists all steps in a device trail, or shows a specific step by revision.
pvr device steps labslave_var-som-mx8mn
pvr device steps labslave_var-som-mx8mn --rev=4
pvr device statediff
Diffs the state between two revisions — great for seeing exactly what changed between deployments.
pvr device statediff labslave_var-som-mx8mn 9 10
pvr device statediff labslave_var-som-mx8mn 9 10 --format=jsondiff
Supports unified diff (default) and JSON patch format (--format=jsondiff).
Flexible Device References
All three commands accept multiple input formats:
- Device ID:
69bf4ccec0329e0009885cb9 - Device nick:
labslave_var-som-mx8mn - PVR URL:
https://pvr.pantahub.com/asacasa/labslave_var-som-mx8mn - PVR URL with revision:
https://pvr.pantahub.com/asacasa/labslave_var-som-mx8mn/9
--no-tail for pvr device logs
pvr device logs now supports a --no-tail (-n) flag. When set, the log stream exits after consuming all available logs up to --to or NOW, instead of tailing indefinitely. This is useful for scripting and CI pipelines.
pvr device logs labslave_var-som-mx8mn --rev=4 --no-tail
pvr device logs labslave_var-som-mx8mn --from=PT1H --no-tail