{"schemaVersion":"1.0","record":{"label":"sigrok-cli","description":"Command-line sigrok frontend for supported hardware acquisition, trace conversion and protocol decoding.","aliases":[],"kind":"software","website":"https://sigrok.org/wiki/Sigrok-cli","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.","license":"GPL-3.0-or-later","lifecycle":"active","example":false,"features":[{"name":"Headless acquisition and decoding","status":"supported","detail":"Runs supported capture and protocol workflows without graphical output.","useCase":"Waveform inspection and signal analysis","platforms":["Linux","Windows","macOS","Other supported sigrok platforms"],"region":"Build, file format and acquisition-hardware requirements apply","evidence":[{"url":"https://sigrok.org/wiki/Sigrok-cli","locator":"Command-line acquisition/decoding, no GUI, licensing and capture-first performance advice","retrievedAt":"2026-10-07T03:45:43Z","kind":"vendor"}]},{"name":"Metadata-preserving native captures","status":"supported","detail":"The .sr container stores samples and session metadata.","useCase":"Waveform inspection and signal analysis","platforms":["Linux","Windows","macOS","Other supported sigrok platforms"],"region":"Build, file format and acquisition-hardware requirements apply","evidence":[{"url":"https://sigrok.org/wiki/File_format:Sigrok/v2","locator":"ZIP sample data and session metadata; samplerate and channel names","retrievedAt":"2026-10-07T03:46:40Z","kind":"vendor"}]}],"alternatives":[],"slug":"sigrok-cli","draftAlternatives":[{"targetSlug":"pulseview","status":"limited","detail":"Alternative frontend for non-graphical workflows; device support is shared but interactive waveform viewing is absent.","useCase":"Scripted supported acquisition and decoding","platforms":["Linux","Windows","macOS","Other supported sigrok platforms"],"region":"Build, file format and acquisition-hardware requirements apply","evidence":[{"url":"https://sigrok.org/wiki/Sigrok-cli","locator":"Command-line acquisition/decoding, no GUI, licensing and capture-first performance advice","retrievedAt":"2026-10-07T03:45:43Z","kind":"vendor"},{"url":"https://sigrok.org/wiki/PulseView","locator":"Qt frontend role and GPL version 3 or later","retrievedAt":"2026-10-07T03:45:43Z","kind":"vendor"}]}],"evidence":[{"url":"https://sigrok.org/wiki/Sigrok-cli","locator":"Command-line acquisition/decoding, no GUI, licensing and capture-first performance advice","retrievedAt":"2026-10-07T03:45:43Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://sigrok.org/wiki/Sigrok-cli","locator":"Command-line acquisition/decoding, no GUI, licensing and capture-first performance advice","retrievedAt":"2026-10-07T03:45:43Z","id":"sr-cli","title":"sigrok-cli manual","kind":"vendor"},{"url":"https://sigrok.org/wiki/File_format:Sigrok/v2","locator":"ZIP sample data and session metadata; samplerate and channel names","retrievedAt":"2026-10-07T03:46:40Z","id":"sr-session","title":"sigrok session format v2","kind":"vendor"},{"url":"https://sigrok.org/wiki/Input_output_formats","locator":"Format directionality, raw binary metadata and decoder output distinction","retrievedAt":"2026-10-07T03:46:40Z","id":"sr-formats","title":"sigrok input and output formats","kind":"vendor"},{"url":"https://sigrok.org/wiki/Protocol_decoders","locator":"Supported versus planned decoders and layered input/output types","retrievedAt":"2026-10-07T03:47:07Z","id":"sr-decode","title":"sigrok protocol decoders","kind":"vendor"},{"url":"https://sigrok.org/wiki/Supported_hardware","locator":"Support completeness, development versus released builds and device-specific requirements","retrievedAt":"2026-10-07T03:46:57Z","id":"sr-hardware","title":"sigrok supported hardware","kind":"vendor"},{"url":"https://sigrok.org/wiki/PulseView","locator":"Qt frontend role and GPL version 3 or later","retrievedAt":"2026-10-07T03:45:43Z","id":"pv-home","title":"PulseView","kind":"vendor"}],"overviewCitations":["sr-cli"],"licenseCitations":["sr-cli"],"sections":[{"id":"workflow","heading":"Command-line measurement","paragraphs":[{"id":"workflow-detail","content":[{"text":"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."}],"citations":["sr-cli"]}]},{"id":"formats","heading":"Data and metadata","paragraphs":[{"id":"formats-detail","content":[{"text":"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."}],"citations":["sr-session","sr-formats"]}]},{"id":"decoders","heading":"Protocol results","paragraphs":[{"id":"decoders-detail","content":[{"text":"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."}],"citations":["sr-decode","sr-formats"]}]},{"id":"scope","heading":"Availability and substitution","paragraphs":[{"id":"scope-detail","content":[{"text":"The GPLv3-or-later frontend can substitute for "},{"text":"PulseView","targetSlug":"pulseview"},{"text":" 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."}],"citations":["sr-cli","sr-hardware","pv-home"]}]}]},"id":"Q953","revision":1001,"updatedAt":"2026-10-13T16:43:21Z","sourceUrl":"https://substitutefor.net/entities/Q953?revision=1001"}}