PacketSafari

CLI overview

Choose a PacketSafari command and follow a typical capture-to-report workflow.

Use packetsafari to submit a local PCAP, investigate an uploaded capture, verify an IDS alert, or save results for automation. Packet analysis runs in your PacketSafari deployment. You do not need to enroll a capture sensor to use an operator API key.

Start here

  1. Install and configure the CLI.
  2. Investigate a capture or verify an IDS alert.
  3. Save results, resume, and troubleshoot.

Pick the shortest workflow that answers the question

Your situationStart withWhy
“What most likely caused this failure?”investigate --goal troubleshoot --workflow fastReturns a bounded first assessment quickly.
“Is this capture suspicious?”investigate --goal security --workflow fastRuns the security goal without requiring an IDS alert.
“I need a second opinion on the first answer.”Add --verify to FastRuns an independent Verification after the Fast Report.
“I need the complete incident workflow.”investigate --workflow progressiveProduces Fast Report, Triage, Verification, and Final Report milestones.
“Give the model complete Triage evidence first.”investigate --workflow triage_deepCompletes Core/Triage before the AI report.
“Run deterministic packet analysis without AI.”investigate --workflow triageProduces Triage evidence without a model report.
“Did this exact IDS alert really match?”alert verifyBinds the investigation to alert/rule context.

Start with Fast for an ordinary question. Escalate the same case when the decision needs broader capture processing, independent verification, or a comprehensive final report. A completed Fast Report is preliminary; it does not become verified merely because execution completed.

Choose a command

What you want to doCommandGuide
Troubleshoot or review securitypacketsafari investigateInvestigations
Check an existing IDS alertpacketsafari alert verifyIDS alerts
Transfer one capturepacketsafari uploadUploads
Transfer a directory or watch incoming filespacketsafari ingestUploads
Save defaults or inspect configurationpacketsafari configSetup
Install and enroll a capture sensorCapture probes UICapture probes
Integrate without the CLI/api/v2/investigationsAPI
Maintain an on-prem deploymentpacketsafari-opsDeployment CLI

A typical local-file workflow

After saving your server and API key, replace the path below with a file that exists on your workstation:

PCAP="$HOME/Desktop/incident/capture.pcap"
ls -lh "$PCAP"
packetsafari investigate "$PCAP" --goal troubleshoot --tui

The CLI uploads the file (or reuses an identical existing upload), submits the investigation, shows progress, and prints the result. The TUI guides configuration before submission. AI workflows use the selected provider's allowance; Triage only does not call an AI model.

Examples use macOS/Linux shell syntax. Quote paths containing spaces. In PowerShell, use $PCAP = "$HOME/Desktop/incident/capture.pcap" and put the command on one line; Bash backslash continuations do not apply.

packetsafari
packetsafari help investigate
packetsafari help alert
packetsafari investigate --help
packetsafari alert verify --help

doctor diagnoses local capture support; capture-local captures workstation traffic. probe works with enrolled sensor evidence. Use each command's --help for its prerequisites.

analyze and run are lower-level Agent streaming commands. Prefer investigate for goal/workflow selection and investigation results. In a source checkout, ./packetsafari dev ... manages development services; it is not a required step for normal CLI users.

Source-checkout warning: ./packetsafari is the development and release launcher. The installed operator command is packetsafari from your PATH. Do not add ./ when following these CLI investigation examples.

See the command reference for goals, workflows, configuration, and flags. For unattended use, continue with automation recipes.