PacketSafari

CLI command reference

Find PacketSafari operator commands, investigation goals, workflows, formats, and shared flags.

The installed binary is the authoritative reference for its build:

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

Inside a source checkout, omit ./: ./packetsafari is the development launcher, while packetsafari from PATH is the operator CLI.

Primary commands

CommandPurpose
configSave, unset, and display CLI defaults.
doctorDiagnose local capture support and prerequisites.
capture-localRecord traffic on the workstation.
authManage interactive login state.
api-keyCreate, list, or revoke operator API keys when the signed-in role permits it.
uploadUpload one capture with login/bearer authentication.
ingestTransfer files/directories with resumable state and optional investigation.
statusRead capture processing status.
investigateRun the general goal/workflow investigation contract.
alert verifyVerify supplied IDS alert context through the same investigation contract.
probeWork with installed probe evidence and alert windows.
analyze, runLower-level Agent streaming commands.

Goals and workflows

Goals are troubleshoot, security, wifi, summary, network, and custom. Workflows are fast, progressive, triage_deep, and triage. --verify adds independent Verification to Fast. --inference-speed fast requests provider acceleration and does not change the workflow.

See Investigations for milestone semantics and selection examples.

Investigation and alert flags

FlagPurpose
--goalSelect the investigation goal.
--workflowSelect Fast, Progressive, Triage then report, or Triage only.
--verifyFollow Fast with independent Verification.
--capture-idUse an existing upload instead of a local file.
--event, --envelopeSupply an alert event or PacketSafari alert envelope.
--external-alert-idPreserve a source-system alert identity.
--settingsLoad grouped investigation configuration JSON.
--analysis-planLoad upload/indexing plan JSON.
--full-idsRequest complete IDS scanning independently of Fast.
--anonymize, --anoncap-optionsPrepare and use a server-side protected copy.
--ai-auth-source-idChoose the configured AI connection.
--model, --reasoning-effortOverride account/team model defaults.
--inference-speedRequest standard or eligible provider acceleration.
--verbosityRequest low, medium, or high response detail.
--emailRequest eligible report delivery.
--idempotency-keyGive a retry the same request identity.
--job-idResume observation of an existing job.
--tuiConfigure the request interactively before upload.
--formatSelect markdown, json, ndjson, or sse.
--quiet, --verboseControl progress and diagnostic detail.

Explicit flags override environment variables and saved flat configuration. Grouped --settings values and their current precedence are explained in Install and configure.

Development and deployment commands

These similarly named tools have separate responsibilities:

InvocationResponsibility
packetsafari ...Installed operator CLI described on this page.
./packetsafari dev ...Development services from a source checkout.
./packetsafari release ...SaaS release workflow from a source checkout.
packetsafari-ops ...On-prem host installation, service, backup, and upgrade operations.

See PacketSafari Ops CLI for deployment operations.