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 phaseRotate the reference phase for lock-in analysiscore
pmoke kerrCalculate the Kerr anglecore
pmoke analyzeRun all analysis steps: reference, sensor, lock-in, phase, Kerrcore
pmoke processAutomated analysis after manually triggering the pulse (fetch, lock-in, phase, Kerr)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 such as stopping the oscilloscope-
-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 phase

Rotate the reference phase for lock-in analysis

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

pmoke kerr

Calculate the Kerr angle

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

pmoke analyze

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

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

pmoke process

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

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