powerpipe detection

List, view, and run powerpipe detections.

Usage

Sub-Commands

CommandDescription
listList detections from the current mod and its direct dependents.
runRun a detection from the current mod or its direct dependents.
showShow details of a detection from the current mod or its direct dependents.

powerpipe detection list

List detections from the current mod and its direct dependents.

Examples

List detections:

List all detections in JSON format:

List detections using settings from a workspace:

powerpipe detection show

Show details of a detection from the current mod or its direct dependents.

Examples

Show details of a single detection in the current mod:

Show details of a single detection in a direct dependency mod: [[not yet?]]

Show details of a detection in JSON format:

Show details of a detection using settings from a workspace:

powerpipe detection run

Run a detection from the current mod or its direct dependents.

Arguments

Usage: powerpipe detection run [flags] [detection]

FlagDescription
--arg stringArraySpecify the value of a detection argument.
--database stringTurbot Pipes workspace database. DEPRECATED: See documentation for the new syntax.
--detection-timeout intSet the detection execution timeout.
--export stringsExport output to file. Supported format: pps (snapshot).
-h, --helpHelp for detection.
--inputEnable interactive prompts. (default: true)
--max-parallel intThe maximum number of concurrent database connections to open. (default: 10)
--mod-installSpecify whether to install mod dependencies before running the detection. (default: true)
--mod-location stringSets the workspace working directory. If not specified, the workspace directory will be set to the current working directory. (default: /home/jon/tailpipe-mod-github-detections)
--output outputOutput format: snapshot, pps, none. (default: pps)
--pipes-host stringTurbot Pipes host. (default: pipes.turbot.com)
--pipes-token stringTurbot Pipes authentication token.
--progressDisplay detection execution progress when a detection name argument is passed. (default: true)
--pull pullUpdate strategy: full, latest, development, minimal. (default: minimal)
--query-timeout intThe query timeout in seconds. (default: 300)
--shareCreate snapshot in Turbot Pipes with anyone_with_link visibility.
--snapshotCreate snapshot in Turbot Pipes with the default (workspace) visibility.
--snapshot-location stringThe location to write snapshots: either a local file path or a Turbot Pipes workspace.
--snapshot-tag stringArraySpecify tags to set on the snapshot.
--snapshot-title stringThe title to give a snapshot.
--var stringArraySpecify the value of a variable.
--var-file stringsSpecify a .ppvar file containing variable values.

Examples

Run a detection and output the snapshot data:

Run a detection and output the snapshot data to a file: