pmokeDOCS
CLI Reference

CLI Reference

Generated command and option reference for the complete pmoke feature set.

Generated from typed clap metadata. Manual edits are overwritten.

Command index

CommandDescriptionFeature
pmoke showDisplay the contents of the configuration filecore
pmoke monitorOpen a live terminal dashboard for configuration and analysis artifactscore
pmoke configInspect and migrate configuration filescore
pmoke rawInspect and verify stored RAW waveform datacore
pmoke instrumentsInspect supported instruments and hardware capabilitiescore
pmoke benchBenchmark instrument transport request latencycore
pmoke exportExport stored data to interchange formatscore
pmoke doctorDiagnose config, storage, Python, and connected instrumentscore
pmoke singleSet single mode to the oscilloscopehw-core
pmoke triggerSend trigger signal from the function generatorhw-core
pmoke autoshotSet single mode and send trigger signalhw-core
pmoke fetchFetch data from the oscilloscope and save to a filehw-core
pmoke screenshotCapture an oscilloscope screenshot directly to the PChw-core
pmoke automeasurePerform auto measurement (set single mode, trigger, fetch)hw-core
pmoke referenceFit the recorded EOM-drive sine wavecore
pmoke sensorAnalyze the sensor signalcore
pmoke liRun numerical lock-in analysiscore
pmoke signalAverage raw signal channels over the lock-in windowcore
pmoke phaseRotate the reference phase for lock-in analysiscore
pmoke mokeCalculate the Kerr anglecore
pmoke analyzeRun all analysis steps: sensor, reference, signal, lock-in, phase, mokecore
pmoke compare-lockinCompare lock-in estimators on shared data over a fixed window grid and write results into a new directorycore
pmoke evaluate-lockinEvaluate paired lock-in baseline and candidate values under a frozen protocol and write a JSON reportcore
pmoke calibrateBuild, inspect, or validate a recorded-only calibration artifactcore
pmoke noiseRecorded-only pulse-noise diagnosis, comparison and replaycore
pmoke processAutomated analysis after manually triggering the pulse (fetch, lock-in, phase, moke)hw-core
pmoke autoRun the full automatic measurement and analysishw-core
pmoke completionsGenerate shell completion scriptcore

Global options

OptionRequiredDefault / valuesDescriptionConflicts
-c, --config <FILE>-config.tomlPath to the configuration file (default: ./config.toml)-
--run-dir <DIR>--Store and read run artifacts under this directory-
-f, --force--Overwrite existing run artifacts without error-
-h, --help--Print help-
-V, --version--Print version-

pmoke show

Display the contents of the configuration file

pmoke show [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke monitor

Open a live terminal dashboard for configuration and analysis artifacts

pmoke monitor [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke config

Inspect and migrate configuration files

pmoke config [-h, --help] <COMMAND>
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke config init

Create a starter config file

pmoke config init [--output <FILE>] [-f, --force] [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
--output <FILE>--Write the template to FILE instead of --config; use '-' for standard output-
-f, --force--Overwrite an existing output file-
-h, --help--Print help-

pmoke config validate

Validate the config file without running an analysis command

pmoke config validate [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke config explain

Explain config sections and fields

pmoke config explain [<PATH>] [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
<PATH>--Field or section path to explain, for example lockin.filter-
-h, --help--Print help-

pmoke config migrate

Migrate the config to the latest executable schema

pmoke config migrate [--output <FILE>] [--in-place] [--check] [--accept-lossy] [--to <VERSION>] [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
--output <FILE>--Write the migrated TOML to FILE; use '-' for standard outputcheck, in_place
--in-place--Atomically replace the source config after creating a versioned backupcheck, output
--check--Only report whether a migration is requiredin_place, output
--accept-lossy--Accept migration steps that can change legacy behavior-
--to <VERSION>--Require a specific target version instead of the latest executable version-
-h, --help--Print help-

pmoke raw

Inspect and verify stored RAW waveform data

pmoke raw [-h, --help] <COMMAND>
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke raw verify

Verify RAW metadata, file sizes, and available checksums

pmoke raw verify [--input <DIR>] [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
--input <DIR>--RAW acquisition directory (defaults to acquisition/ with legacy fallback)-
-h, --help--Print help-

pmoke instruments

Inspect supported instruments and hardware capabilities

pmoke instruments [-h, --help] <COMMAND>
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke instruments list

List supported instrument models

pmoke instruments list [--json] [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
--json--Emit machine-readable JSON-
-h, --help--Print help-

pmoke instruments explain

Explain a supported instrument model

pmoke instruments explain <MODEL> [--json] [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
<MODEL>yes-Instrument model name, for example Keithley2010-
--json--Emit machine-readable JSON-
-h, --help--Print help-

pmoke instruments query

Send one SCPI text query to a connection URI

pmoke instruments query --connection <URI> [--timeout-ms <MS>] [--json] <COMMAND> [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
--connection <URI>yes-Connection URI, for example prologix-tcp://host:1234?addr=17-
--timeout-ms <MS>-3000Timeout used when the URI does not include a transport-specific timeout-
--json--Emit machine-readable JSON-
<COMMAND>yes-SCPI query command, for example *IDN?-
-h, --help--Print help-

pmoke bench

Benchmark instrument transport request latency

pmoke bench [-h, --help] <COMMAND>
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke bench scpi-query

Benchmark one SCPI query and save a compact reproducibility report

pmoke bench scpi-query --connection <URI> [--command <COMMAND>] [-n, --iterations <N>] [--warmup <N>] [--timeout-ms <MS>] [-o, --output <FILE>] [--json] [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
--connection <URI>yes-Connection URI accepted by pmoke instruments query-
--command <COMMAND>-*IDN?SCPI query command to benchmark-
-n, --iterations <N>-50Measured query count-
--warmup <N>-3Unmeasured query count before measurement-
--timeout-ms <MS>-3000Timeout used when the URI has no transport-specific timeout-
-o, --output <FILE>--Save TOML to FILE instead of the run benchmark directory-
--json--Emit the compact report as JSON after saving TOML-
-h, --help--Print help-

pmoke bench transport

Measure text request/response latency for a connection URI

pmoke bench transport --connection <URI> [--protocol <PROTOCOL>] [-r, --request <TEXT>] [-n, --iterations <N>] [--warmup <N>] [--timeout-ms <MS>] [-o, --output <FILE>] [--json] [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
--connection <URI>yes-Connection URI accepted by pmoke instruments query-
--protocol <PROTOCOL>-scpi; scpi, lineText protocol used to validate each request-
-r, --request <TEXT>-*IDN?Request to benchmark; repeat for multiple requests-
-n, --iterations <N>-50Measured request count per request-
--warmup <N>-3Unmeasured request count before each measurement-
--timeout-ms <MS>-3000Timeout used when the URI has no transport-specific timeout-
-o, --output <FILE>--Save the complete JSON report to a file-
--json--Emit the complete report as JSON-
-h, --help--Print help (see a summary with '-h')-

pmoke export

Export stored data to interchange formats

pmoke export [-h, --help] <COMMAND>
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke export csv

Convert a verified RAW waveform directory to CSV

pmoke export csv [--input <DIR>] [--output <FILE>] [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
--input <DIR>--RAW acquisition directory (defaults to acquisition/ with legacy fallback)-
--output <FILE>--CSV destination (defaults to acquisition/waveforms/waveform.csv)-
-h, --help--Print help-

pmoke export npy

Convert analysis result CSV files to NumPy tables

pmoke export npy [--output <DIR>] [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
--output <DIR>--Destination directory (defaults to NPY files beside canonical analysis CSVs)-
-h, --help--Print help-

pmoke doctor

Diagnose config, storage, Python, and connected instruments

pmoke doctor [--json] [--probe-fetch] [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
--json--Emit a machine-readable JSON report-
--probe-fetch--Allow active checks that stop the oscilloscope (left in stopped state)-
-h, --help--Print help-

pmoke single

Set single mode to the oscilloscope

Required feature: hw-core

pmoke single [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke trigger

Send trigger signal from the function generator

Required feature: hw-core

pmoke trigger [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke autoshot

Set single mode and send trigger signal

Required feature: hw-core

pmoke autoshot [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke fetch

Fetch data from the oscilloscope and save to a file

Required feature: hw-core

pmoke fetch [--format <FORMAT>] [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
--format <FORMAT>-csv, raw, csv-and-rawOverride output format from config [fetch].output-
-h, --help--Print help-

pmoke screenshot

Capture an oscilloscope screenshot directly to the PC

Required feature: hw-core

pmoke screenshot [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke automeasure

Perform auto measurement (set single mode, trigger, fetch)

Required feature: hw-core

pmoke automeasure [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke reference

Fit the recorded EOM-drive sine wave

pmoke reference [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke sensor

Analyze the sensor signal

pmoke sensor [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke li

Run numerical lock-in analysis

pmoke li [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke signal

Average raw signal channels over the lock-in window

pmoke signal [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke phase

Rotate the reference phase for lock-in analysis

pmoke phase [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke moke

Calculate the Kerr angle

pmoke moke [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke analyze

Run all analysis steps: sensor, reference, signal, lock-in, phase, moke

pmoke analyze [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke compare-lockin

Compare lock-in estimators on shared data over a fixed window grid and write results into a new directory

pmoke compare-lockin --request <FILE> [--output <DIR>] [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
--request <FILE>yes-Path to the comparison request file-
--output <DIR>--Override the output directory from the request-
-h, --help--Print help-

pmoke evaluate-lockin

Evaluate paired lock-in baseline and candidate values under a frozen protocol and write a JSON report

pmoke evaluate-lockin --request <FILE> [--output <FILE>] [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
--request <FILE>yes-Path to the evaluation request file-
--output <FILE>--Write the report to FILE instead of beside the request-
-h, --help--Print help-

pmoke calibrate

Build, inspect, or validate a recorded-only calibration artifact

pmoke calibrate [-h, --help] <COMMAND>
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke calibrate build

Build an immutable calibration artifact from recorded waveforms (CSV request or direct RAW run)

pmoke calibrate build [--request <FILE>] [--output <DIR>] [--run <DIR>] [--channel <N>] [--model-id <ID>] [--reference-channel <N>] [--reference-frequency-hz <HZ>] [--reference-phase-rad <RAD>] [--block-len <N>] [--seed <N>] [--frequency-rel-tol <TOL>] [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
--request <FILE>--Path to the calibration build request fileblock_len, channel, model_id, reference_channel, reference_frequency_hz, reference_phase_rad, run, seed
--output <DIR>--Override the output directory from the request-
--run <DIR>--Recorded run directory for a direct build (defaults to the current directory)request
--channel <N>--Target channel for a direct build; repeat for several (defaults to the run signal channels)request
--model-id <ID>--Model identifier for a single-channel direct buildrequest
--reference-channel <N>--Reference channel for the same-run reference fit of a direct buildrequest
--reference-frequency-hz <HZ>--Reference frequency in Hz for a direct build (defaults to the same-run fit)request
--reference-phase-rad <RAD>--Reference phase in radians for a direct build (defaults to the same-run fit)request
--block-len <N>--Block length in samples for a direct build (defaults to samples divided by 40)request
--seed <N>--Random seed for a direct build (defaults to 0)request
--frequency-rel-tol <TOL>--Reference-frequency applicability tolerance override (relative) for a direct build (defaults to the uncertainty combination; the value is recorded and marked overridden)request
-h, --help--Print help-

pmoke calibrate inspect

Inspect a calibration artifact file (read-only)

pmoke calibrate inspect --artifact <FILE> [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
--artifact <FILE>yes-Path to the calibration artifact JSON file-
-h, --help--Print help-

pmoke calibrate validate

Validate a calibration artifact against an inference context (read-only)

pmoke calibrate validate --artifact <FILE> --context <FILE> [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
--artifact <FILE>yes-Path to the calibration artifact JSON file-
--context <FILE>yes-Path to the TOML applicability context file-
-h, --help--Print help-

pmoke noise

Recorded-only pulse-noise diagnosis, comparison and replay

pmoke noise [-h, --help] <COMMAND>
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke noise diagnose

Plan a recorded-only noise diagnosis into a new destination

pmoke noise diagnose --request <FILE> [--output <DIR>] [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
--request <FILE>yes-Path to the noise diagnose request file-
--output <DIR>--Override the output directory from the request-
-h, --help--Print help-

pmoke noise compare

Run the frozen global calibration plus controlled comparison workflow

pmoke noise compare --request <FILE> [--output <DIR>] [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
--request <FILE>yes-Path to the noise compare request file-
--output <DIR>--Override the output directory from the request-
-h, --help--Print help-

pmoke noise replay

Verify a committed compare generation and replay phase -> MOKE -> NPY

pmoke noise replay --destination <DIR> [--output <DIR>] [--verify-only] [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
--destination <DIR>yes-Committed noise compare destination directory-
--output <DIR>--Replay destination (defaults to <destination>/replay)-
--verify-only--Verify digests and semantic schemas only; write nothing-
-h, --help--Print help-

pmoke process

Automated analysis after manually triggering the pulse (fetch, lock-in, phase, moke)

Required feature: hw-core

pmoke process [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke auto

Run the full automatic measurement and analysis

Required feature: hw-core

pmoke auto [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
-h, --help--Print help-

pmoke completions

Generate shell completion script

pmoke completions <SHELL> [-h, --help]
OptionRequiredDefault / valuesDescriptionConflicts
<SHELL>yesbash, elvish, fish, powershell, zshShell to generate for: bash, zsh, fish, powershell, elvish-
-h, --help--Print help-

On this page