pensar pentests

Overview

The pensar pentests command lets you manage pentests (scans) in your workspace through the Pensar Console API. You can list existing pentests, view details, or dispatch new ones — all from the command line.

All commands operate on the selected workspace, which is chosen when you connect with pensar login. There is no longer a project argument.

Usage

$pensar pentests # List pentests in the workspace (alias: pensar pentests list)
$pensar pentests get <pentestId> # Get pentest details
$pensar pentests dispatch [options] # Dispatch a new pentest

Prerequisites

You must be connected to Pensar Console via pensar login before using this command.

Subcommands

List Pentests

$pensar pentests

Lists all pentests in the selected workspace. Returns a JSON array of pentest objects.

Get Pentest Details

$pensar pentests get <pentestId>

Retrieves detailed information about a specific pentest, including status, findings count, and configuration.

Dispatch a New Pentest

$pensar pentests dispatch [options]

Dispatches a new pentest scan in the selected workspace.

FlagDescription
--branch <branch>Target branch to scan
--level <level>Scan depth: priority (default) or full

Examples

$# List all pentests in the workspace
$pensar pentests
$
$# Get details for a specific pentest
$pensar pentests get scan_def456
$
$# Dispatch a new priority scan
$pensar pentests dispatch
$
$# Dispatch a full scan on a specific branch
$pensar pentests dispatch --branch main --level full