software · Q953
sigrok-cli
Command-line sigrok frontend for supported hardware acquisition, trace conversion and protocol decoding.
Overview
sigrok-cli is the command-line frontend to the sigrok acquisition and decoding libraries. It can initialize supported instruments, capture signals, interpret protocols and save results without a graphical waveform display. This makes it relevant to repeatable or remote measurement workflows rather than primarily interactive trace browsing.[1]
Command-line measurement
A workflow identifies a device driver, its configuration, channels and capture limits, then writes samples or processed output. Inputs can also come from existing files, allowing decoding to be separated from acquisition. The manual recommends capturing first and processing later for demanding workloads because the command-line application is single-threaded and output overhead can overwhelm acquisition. Automation therefore needs a data path appropriate to the intended capture rate.[1]
Data and metadata
The native .sr session format is a ZIP container holding sample data and metadata such as channel information and sample rate. This differs from raw binary exports, which lack attached metadata. The input/output table also distinguishes formats that can only be read or only be written. Keeping acquisition context with exported samples is necessary for meaningful later interpretation, rather than assuming that a filename identifies all relevant timing and channel properties.[2][3]
Protocol results
sigrok's decoder catalog identifies supported protocols and the types of data that decoders consume and emit. Layered decoders can interpret a bus stream at a more specific device level. These results are separate from raw samples: the format documentation warns that processed decoder output is not saved through the ordinary raw-output file option. A scripted workflow must therefore preserve the intended output stream as well as any original capture needed for reanalysis.[3][4]
Availability and substitution
The GPLv3-or-later frontend can substitute for PulseView when the task is repeatable supported acquisition or file decoding and no graphical display is required. Hardware support still comes from the underlying libraries; the catalog includes incomplete and planned entries and may describe newer development builds. It does not replace every interactive inspection feature, nor does using a command-line tool remove device-specific configuration requirements. No hardware was connected or data acquisition performed for this article.[1][5][6]
Capabilities & limitations
Headless acquisition and decoding
supportedRuns supported capture and protocol workflows without graphical output.[1]
Waveform inspection and signal analysis · Linux, Windows, macOS, Other supported sigrok platforms · Build, file format and acquisition-hardware requirements apply
1 source · check evidence
Command-line acquisition/decoding, no GUI, licensing and capture-first performance advice
vendor · checked 2026-10-07Metadata-preserving native captures
supportedThe .sr container stores samples and session metadata.[2]
Waveform inspection and signal analysis · Linux, Windows, macOS, Other supported sigrok platforms · Build, file format and acquisition-hardware requirements apply
1 source · check evidence
ZIP sample data and session metadata; samplerate and channel names
vendor · checked 2026-10-07Can substitute for
These are products or services this entry can replace. Check the task and limitations for each comparison.
PulseView for Scripted supported acquisition and decoding
limitedAlternative frontend for non-graphical workflows; device support is shared but interactive waveform viewing is absent.[1][6]
Linux, Windows, macOS, Other supported sigrok platforms · Build, file format and acquisition-hardware requirements apply
References
- sigrok-cli manual
Command-line acquisition/decoding, no GUI, licensing and capture-first performance advice
vendor · retrieved 2026-10-07 - sigrok session format v2
ZIP sample data and session metadata; samplerate and channel names
vendor · retrieved 2026-10-07 - sigrok input and output formats
Format directionality, raw binary metadata and decoder output distinction
vendor · retrieved 2026-10-07 - sigrok protocol decoders
Supported versus planned decoders and layered input/output types
vendor · retrieved 2026-10-07 - sigrok supported hardware
Support completeness, development versus released builds and device-specific requirements
vendor · retrieved 2026-10-07 - PulseView
Qt frontend role and GPL version 3 or later
vendor · retrieved 2026-10-07
Discussion & disputes
Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.
No discussion yet.
Revision history
Open a revision to read an earlier version of this article.
| Revision | Timestamp | Edit summary |
|---|---|---|
| 1001 | 2026-10-13 16:43:21 | /* wbeditentity-create-item:0| */ sf:f7eb5ec5-2b39-43af-a63a-d366d8de3859:v1 | Add sigrok-cli with cited waveform workflows, licensing and portability limits; no installation or acquisition performed. | attribution: /proposals/f7eb5ec5-2b39-43af-a63a-d366d8de3859 |