Powerpipe CLI

Sub-Commands

CommandDescription
powerpipe helpHelp about any command.
powerpipe loginLog in to Turbot Pipes.
powerpipe modPowerpipe mod management.
powerpipe benchmarkList, view, and run Powerpipe benchmarks.
powerpipe controlList and view Powerpipe controls.
powerpipe dashboardList and view Powerpipe dashboards.
powerpipe queryList and view Powerpipe queries.
powerpipe serverRun Powerpipe server, including triggers and integrations.
powerpipe variableList and view Powerpipe variables.

Global Flags

Flag Description
--config-path Sets the search path for configuration files. This argument accepts a colon-separated list of directories. All configuration files (*.ppc) will be loaded from each path, with decreasing precedence. The default is .:$POWERPIPE_INSTALL_DIR/config (.:~/.powerpipe/config). This allows you to manage your workspaces and credentials centrally in the ~/.powerpipe/config directory, but override them in the mod location if desired.
-h, --help Help for Powerpipe.
--install-dir Set the installation directory for Powerpipe. Internal Powerpipe files will be written to and read from this path. The default is ~/.powerpipe. By default, the configuration search path is also relative to this installation directory. See POWERPIPE_INSTALL_DIR for details.
--mod-location Sets the Powerpipe workspace working directory. If not specified, the workspace directory will be set to the current working directory. See POWERPIPE_MOD_LOCATION for details.
--output Select a console output format: pretty, plain, yaml or json (default pretty).
-v, --version Display Powerpipe version.
--workspace Sets the Powerpipe workspace profile. If not specified, the default workspace will be used if it exists. See POWERPIPE_WORKSPACE for details.

Exit Codes

ValueNameDescription
0ExitCodeSuccessfulPowerpipe ran successfully, with no runtime errors, control errors, or alarms
1ExitCodeControlsAlarmpowerpipe benchmark run or powerpipe control run completed with no runtime or control errors, but there were one or more alarms
2ExitCodeControlsErrorpowerpipe benchmark run or powerpipe control run completed with no runtime errors, but one or more control errors occurred
21ExitCodeSnapshotCreationFailedSnapshot creation failed
22ExitCodeSnapshotUploadFailedSnapshot upload failed
31ExitCodeServiceSetupFailureService setup failed
32ExitCodeServiceStartupFailureService start failed
33ExitCodeServiceStopFailureService stop failed
41ExitCodeQueryExecutionFailedOne or more queries failed for powerpipe query run
51ExitCodeLoginCloudConnectionFailedConnecting to Pipes failed
61ExitCodeModInitFailedMod init failed
62ExitCodeModInstallFailedMod install failed
249ExitCodeInvalidExecutionEnvironmentPowerpipe was run in an unsupported environment
250ExitCodeInitializationFailedInitialization failed
251ExitCodeBindPortUnavailableNetwork port binding failed
252ExitCodeNoModFileThe command requires a mod, but no mod file was found
253ExitCodeFileSystemAccessFailureFile system access failed
254ExitCodeInsufficientOrWrongInputsRuntime error - insufficient or incorrect input
255ExitCodeUnknownErrorPanicRuntime error - an unknown panic occurred