← Docs

CLI Reference

pcapai · 35 command groups, 252 verbs

Generated from the shipped binaries — not written by hand.

pcapai wifi

Live Wi-Fi scan and BSSID location using PCAPAI backends

VerbWhat it does
pcapai wifi scanScan using PCAPAI's platform Wi-Fi scanner (currently macOS)
pcapai wifi connectionRead the currently associated Wi-Fi interface (currently macOS)
pcapai wifi detailsFetch WiGLE address fields for an observed BSSID (candidate address, not verified premises)
pcapai wifi locateLook up an observed BSSID; coordinates are database estimates, not measured GPS
pcapai wifi adaptersList the MediaTek MT7921/MT7925 USB Wi-Fi adapters PCAPAI can capture on (macOS)
pcapai wifi captureCapture live frames from a USB Wi-Fi adapter into a pcapng (macOS; USB source only)

pcapai convert

Convert PCAP/PCAPNG files to PCAPAI format

pcapai convert-batch

Convert MANY PCAP/PCAPNG files to PCAPAI, several at a time

pcapai dissect

Dissect PCAP/PCAPNG files with full protocol analysis

pcapai analyze

Analyze packet files

pcapai analyze-bundle

Assemble the stable analysis bundle for a .pcapai as JSON (health report, capture summary, protocol hierarchy…

pcapai reanalyze

Rebuild the stored analysis inside a .pcapai file, in place

pcapai filter

Filter packets based on criteria

pcapai desktop

Launch desktop GUI

pcapai performance

Show performance metrics and reports

pcapai parquet

Parquet file operations

VerbWhat it does
pcapai parquet convertConvert PCAP/PCAPNG to optimized PCAPAI parquet format
pcapai parquet infoView parquet file information and statistics
pcapai parquet viewView packets from parquet file
pcapai parquet validateValidate parquet file integrity
pcapai parquet benchmarkBenchmark parquet file performance

pcapai netinsights

PCAPAI NetInsights network inventory and topology tools

VerbWhat it does
pcapai netinsights license-statusShow NetInsights license availability
pcapai netinsights workspaceCreate or inspect NetInsights workspaces
pcapai netinsights workspace createCreate or initialize a NetInsights workspace directory
pcapai netinsights workspace statusShow NetInsights workspace status
pcapai netinsights workspace encryptEncrypt an existing plaintext workspace in place (backs up the database first)
pcapai netinsights workspace deleteDelete a workspace directory and remove its OS-keychain encryption key
pcapai netinsights artifactImport, classify, or list raw evidence artifacts
pcapai netinsights artifact importImport files, directories, and archives (.zip/.tgz/.tar/.gz) into the workspace artifact store.
pcapai netinsights artifact listList imported artifacts
pcapai netinsights artifact preview-safeShow a redacted text preview of an imported artifact
pcapai netinsights artifact classifyClassify artifacts and extract first-pass device identity facts
pcapai netinsights inventoryList or search inventory facts produced from artifacts
pcapai netinsights inventory listList current devices built from classified artifacts
pcapai netinsights inventory searchSearch current devices by identity, metadata, services, resources, or topology hints
pcapai netinsights inventory interfacesList current interfaces built from classified artifacts
pcapai netinsights inventory policy-tagspolicy tags with the SSIDs they carry and the VLAN each lands on — the C9800 equivalent of "AP group → SSID l…
pcapai netinsights inventory site-tagssite tags and their AP-join bindings
pcapai netinsights inventory ssid-coverageWhich APs broadcast an SSID
pcapai netinsights inventory client-countsThe aggregate client counts a Cisco C9800 show-tech carries — total clients, the 802.11 generation mix, the c…
pcapai netinsights inventory rogue-clientsThe rogue-client inventory from show wireless wps rogue client summary
pcapai netinsights inventory radiosWi-Fi radios (migration v26) — band, channel, width, tx power.
pcapai netinsights inventory clientsclients from the shared v28 tables, each joined with its newest sample
pcapai netinsights inventory ip-addressesList current IP addresses built from classified artifacts
pcapai netinsights inventory vlansList current VLAN facts built from classified artifacts
pcapai netinsights inventory vlan-subnet-catalogList paged VLAN and subnet catalog records with canonical network derivation
pcapai netinsights inventory neighborsList current LLDP/CDP neighbor facts built from classified artifacts
pcapai netinsights inventory mac-tableList current MAC table facts built from classified artifacts
pcapai netinsights inventory arp-tableList current ARP table facts built from classified artifacts
pcapai netinsights inventory routesList current route facts built from classified artifacts
pcapai netinsights inventory servicesList current service and control-plane feature facts built from classified artifacts
pcapai netinsights inventory resource-profilesList current forwarding profile and resource capacity facts built from classified artifacts
pcapai netinsights inventory topology-edgesList current topology edges derived from neighbor, MAC, ARP, and route evidence
pcapai netinsights inventory topology-edge-evidenceList protocol evidence attached to current topology edges
pcapai netinsights inventory topology-edge-detailShow both-sides detail for a single topology edge (link)
pcapai netinsights inventory topology-neighborhoodShow a bounded topology neighborhood around a device
pcapai netinsights inventory topology-pathFind a basic resolved topology path between two devices
pcapai netinsights inventory topology-graphExport a scoped, renderable topology graph (nodes + edges, optional layout)
pcapai netinsights inventory topology-overrideAdd or list manual topology override records
pcapai netinsights inventory topology-override addAdd a manual topology override record
pcapai netinsights inventory topology-override listList manual topology override records
pcapai netinsights inventory refresh-topology-resolutionsRefresh topology edge resolution using the latest device and IP facts
pcapai netinsights deviceShow detailed inventory state for one device
pcapai netinsights device showShow a device and its current interfaces, services, resources, and topology facts
pcapai netinsights evidenceBrowse source evidence and current fact explanations
pcapai netinsights evidence listList current fact evidence with source artifact links
pcapai netinsights evidence deviceShow fact evidence, parser observations, and quality issues for one device
pcapai netinsights evidence snippetShow a redacted source snippet around one parser observation
pcapai netinsights configStore redacted config snapshots and compare config drift
pcapai netinsights config snapshotCreate, list, or show redacted config snapshots
pcapai netinsights config snapshot createCreate a redacted config snapshot from an imported artifact
pcapai netinsights config snapshot listList redacted config snapshots
pcapai netinsights config snapshot showShow one redacted config snapshot
pcapai netinsights config templateSave or list redacted intended config templates
pcapai netinsights config template saveSave or replace a redacted intended config template from a file
pcapai netinsights config template listList config templates
pcapai netinsights config compareCompare redacted configs and captured parsed facts
pcapai netinsights config compare snapshotsCompare two config snapshot IDs
pcapai netinsights config compare devicesCompare latest config snapshots for two devices
pcapai netinsights config compare templateCompare a config snapshot to a saved template
pcapai netinsights config driftDetect drift against a template or previous snapshot
pcapai netinsights data-qualityReport missing, weak, stale, or conflicting data-quality states
pcapai netinsights data-quality reportShow derived data-quality summary and issue rows
pcapai netinsights healthReport assertion-style device, topology, and capacity health checks
pcapai netinsights health reportShow derived assertion and health-check results
pcapai netinsights health infraRun the Infra Health engine (IC config + IL controller-log + IB baseline-drift) over the workspace's stored c…
pcapai netinsights sourcesThe workspace's sources (Ruckus One, SmartZone, SSH device group, watched folder): list, refresh now, add, re…
pcapai netinsights sources listList the workspace's sources (last synced, status, counts) and any sources an older import left behind that c…
pcapai netinsights sources choicesFor each fleet device: which of API, SSH and RESTCONF can feed this workspace, and in plain words why one can…
pcapai netinsights sources refreshPull from the workspace's sources now. Read-only on the source side; writes the pulled data into the workspac…
pcapai netinsights sources addAdd a source. Exactly one of --ruckus-one, --ssh-folder/--ssh-tag, --restconf-folder/--restconf-tag, --folder
pcapai netinsights sources removeRemove a source. The data it pulled stays in the workspace
pcapai netinsights sources adoptConfirm (or decline) a source proposed from an older import's artifacts
pcapai netinsights aaaper-client AAA / join events and the per-WLAN AAA-path verdict from an imported SmartZone `debug → export log…
pcapai netinsights exportExport inventory, catalog, quality, and topology report datasets
pcapai netinsights aiPrepare redacted AI extraction input and evidence-backed troubleshooting briefs
pcapai netinsights ai prepare-extractionPrepare a bounded redacted artifact excerpt plus schema for AI extraction
pcapai netinsights ai troubleshootBuild an evidence-backed troubleshooting brief for one device
pcapai netinsights diagnosticsExport a redacted parser-diagnostics report for remote debugging
pcapai netinsights diagnostics exportWrite the redacted parser-diagnostics JSON report.
pcapai netinsights geoCellular layers: FCC filed coverage, towers, a device's own cells and fixes
pcapai netinsights geo fetchFetch public cellular data for a box into the workspace: FCC filed coverage (fcc) and OpenStreetMap towers (o…
pcapai netinsights geo import-bugreportStore an Android bugreport's location fixes, serving cells and graded LTE levels
pcapai netinsights geo extract-downloadDownload the hosted OpenCelliD extract for each operator the stored serving cells use (or --plmn), verified b…
pcapai netinsights geo locate-cellsPlace the stored serving cells from the cached OpenCelliD extracts, OFFLINE.
pcapai netinsights geo layersList the stored layers: what each is, its licence, and what it cannot tell
pcapai netinsights geo exportWrite one GeoJSON FeatureCollection per layer, licence and attribution attached
pcapai netinsights benchSynthetic scale benchmark: generate N devices and measure import and query latency

pcapai workspaces

global workspaces — list, discover, inspect

VerbWhat it does
pcapai workspaces listList every known workspace and its live state
pcapai workspaces discoverFind workspaces on disk and add anything new to the list
pcapai workspaces showShow one workspace's contents (captures, designs, logs, inventory)
pcapai workspaces addAdd a folder to the workspace list (it is never modified)
pcapai workspaces forgetRemove a workspace from the list. The folder and its contents are kept
pcapai workspaces relocatePoint a workspace at its new folder after it has been moved
pcapai workspaces activePrint or set the active workspace

pcapai device-cards

your own savable AP device cards, for models the bundled RUCKUS catalog does not have

VerbWhat it does
pcapai device-cards listList your saved device cards, with each band's provenance
pcapai device-cards showShow one card in full
pcapai device-cards addAdd or update a card with a hand-entered peak gain
pcapai device-cards import-antennaImport a vendor antenna file (MSI / Planet .msi / .pln / .ant) onto a card.
pcapai device-cards removeDelete a card

pcapai antenna

The Antenna Designer's solver and evolution, headless

VerbWhat it does
pcapai antenna evolveEvolve a wire antenna with the Antenna Designer's solver and write the design JSON

pcapai planner

Wi-Fi Planner designs — build a plan from what a workspace already knows

VerbWhat it does
pcapai planner new-from-workspaceBuild an OpenIntent plan from a workspace's floor plans and AP positions
pcapai planner planned-vs-deployedCompare the designs published in a workspace with the APs it observes: deployed, planned but not observed, pl…
pcapai planner syncCompare an OPEN plan (an OpenIntent file) with what its workspace observes now, and optionally apply the diff…
pcapai planner import-esxConvert Ekahau .esx files into OpenIntent plans, one per BUILDING
pcapai planner coverage-reportRender a saved plan's coverage report, headless
pcapai planner bomRender a saved plan's bill of materials and PoE budget
pcapai planner field-packWrite the installer's field pack for a saved plan

pcapai fleet

Fleet SSH automation: device inventory, login profiles, runbooks, runs, firmware upgrades

VerbWhat it does
pcapai fleet import-textImport devices from a plain text list (one host[:port] per line)
pcapai fleet import-csvImport devices from a CSV (auto-maps host/name/vendor/...
pcapai fleet import-netinsightsImport devices from a NetInsights workspace (pre-enriched inventory)
pcapai fleet devicesList/search the device inventory
pcapai fleet profilesManage login profiles (credential sets)
pcapai fleet profiles listList login profiles
pcapai fleet profiles addAdd a login profile. --auth: password \
pcapai fleet profiles set-passwordStore the password for a profile (reads one line from stdin)
pcapai fleet profiles set-enable-secretStore the enable secret for a profile (reads one line from stdin).
pcapai fleet profiles set-enable-modeChange a profile's enable (privileged-exec) mode without touching its secrets.
pcapai fleet profiles deleteDelete a login profile (and its keychain secrets)
pcapai fleet runbooksList saved runbooks
pcapai fleet validateValidate a runbook YAML file (structure, expressions, read-only classifier)
pcapai fleet runRun a runbook (read-only by default; explicit reviewed writes supported)
pcapai fleet resultsShow run results (defaults to the most recent run)
pcapai fleet upgradeUpgrade ONE device's firmware (Ruckus ICX): serve the image over TFTP to that device only, copy tftp flash,…
pcapai fleet restconfRESTCONF to a device over HTTPS with its login profiles: list operations, GET; PATCH/POST only with --approve…
pcapai fleet restconf operationsList the operations the device offers (GET /restconf/operations)
pcapai fleet restconf getGET a data path, e.g. restconf-state, openconfig-lldp:lldp/interfaces or data/...
pcapai fleet restconf patchPATCH (merge) a data path. JSON body from --data (or @file)
pcapai fleet restconf postPOST (create, or invoke an operation under operations/).
pcapai fleet restconf forget-certForget the recorded certificate for this device (after you verified a changed one)
pcapai fleet rerun-failedRe-run only the failed devices of a previous run
pcapai fleet cancelCancel an active run

pcapai ssh

SSH client utilities: host-key trust store and file transfer

VerbWhat it does
pcapai ssh known-hostsManage the SSH host-key trust store (ssh_known_hosts.json)
pcapai ssh known-hosts listList every trusted host key
pcapai ssh known-hosts showShow the trusted key for one host (host, host:port, or [v6]:port)
pcapai ssh known-hosts probeFetch and print the host key a device is currently offering (no auth)
pcapai ssh known-hosts approveTrust the key a device is currently offering, replacing any previous one
pcapai ssh known-hosts removeForget a trusted host key (the next connect re-does trust-on-first-use)
pcapai ssh known-hosts importImport host keys from an OpenSSH known_hosts file.
pcapai ssh known-hosts exportExport the trusted host keys as an OpenSSH known_hosts file (entries whose whole key is held; fingerprint-onl…
pcapai ssh keysSSH keys: create, list, import, export the public half, and plan installing one on a device family (plans onl…
pcapai ssh keys generateCreate a key pair: ed25519 (default), rsa3072 (older devices) or rsa4096.
pcapai ssh keys listList the keys in the vault
pcapai ssh keys auditKey hygiene (K5), read-only: which devices each key reaches (through login profiles and recorded installs) an…
pcapai ssh keys showShow one key (by name, id or SHA256 fingerprint)
pcapai ssh keys importAdd an existing key by its file (the .pub, or the private file: only its public half is read; the private fil…
pcapai ssh keys scanList the public keys in a folder (default ~/.ssh).
pcapai ssh keys export-publicPrint a key's public half: openssh (one line), rfc4716 (SSH2, for Ruckus ICX) or body
pcapai ssh keys recipesList install recipes, or show one family's help page
pcapai ssh keys plan-installPlan installing a key on a device family: the install runbook, the verify step, the save runbook, the key fil…
pcapai ssh tunnelForward a local port to a host:port reachable from a saved device (ssh -L).
pcapai ssh copy-idInstall a public key in a Linux/OpenSSH device's authorized_keys.
pcapai ssh execRun ONE command on a saved fleet device (its login profiles; no password typed) and exit with the remote exit…
pcapai ssh logsRead a detached job's output (ssh exec --detach): --tail N, --follow, --stderr
pcapai ssh jobDetached jobs started from this machine: list, status, kill
pcapai ssh job listJobs started from this machine, newest first
pcapai ssh job statusIs the job running, and how did it end
pcapai ssh job killStop the job's command (SIGTERM)
pcapai ssh lsList a remote directory over SFTP
pcapai ssh getDownload a file FROM the device to this machine
pcapai ssh putUpload a file TO the device from this machine

pcapai console

Serial / USB-serial console: list ports, probe a cable, run read-only commands over a console when SSH cannot…

VerbWhat it does
pcapai console listList serial ports (USB-serial console adapters first).
pcapai console probeOpen a console, press Enter, and report what the device is showing.
pcapai console runRun read-only commands over a console and print their output

pcapai serve

Serve a folder over TFTP, FTP, SFTP, HTTP or HTTPS on a selected local address.

VerbWhat it does
pcapai serve startStart any supported protocol on an explicitly selected local address
pcapai serve tftpServe a folder over TFTP so a switch or AP can pull firmware from this machine and push its configuration back
pcapai serve interfacesList the addresses a listener can bind on this machine
pcapai serve protocolsList available file-transfer protocols and their standard ports
pcapai serve portsExplain what binding a given port costs on each operating system

pcapai throughput

Throughput test (iperf3 protocol): run a client test against a server, or listen as one

VerbWhat it does
pcapai throughput clientRun a test against a server (the side that dials).
pcapai throughput serverListen for tests from a client (the side that waits).
pcapai throughput enginesShow which engines this build can run, and why one cannot

pcapai scan

Network scans: TCP Connect() port scan of explicit targets (private/LAN by default)

VerbWhat it does
pcapai scan portsTCP Connect() port scan of explicit targets (no root, no raw sockets).

pcapai snmp

SNMP: get, walk, bulkwalk, set (needs --approve-writes) and diff for v1/v2c/v3 agents

VerbWhat it does
pcapai snmp getGET one or more OIDs
pcapai snmp getnextGETNEXT one or more OIDs
pcapai snmp walkWalk a subtree with GETNEXT (any SNMP version)
pcapai snmp bulkwalkWalk a subtree with GETBULK (v2c / v3)
pcapai snmp setSET values. Prints the request and sends nothing unless --approve-writes
pcapai snmp diffCompare two walks (saved profiles and/or walk --json files): objects on one side only and objects whose val…
pcapai snmp profileManage saved SNMP targets (secrets go to the OS keychain)
pcapai snmp profile saveSave (or replace) a target. Secrets are read from the named environment variables and stored in the OS keycha…
pcapai snmp profile list
pcapai snmp profile delete

pcapai oui

Look up the vendor for MAC addresses or OUI prefixes in the embedded IEEE registry (offline)

pcapai ping

Ping ONE host (bounded count; LAN, loopback and private targets unless --allow-public)

pcapai traceroute

Traceroute to ONE host (LAN, loopback and private targets unless --allow-public)

pcapai subnet

Calculate an IPv4 subnet: mask, wildcard, broadcast, usable range, and an optional split (offline)

pcapai myip

Show this machine's interfaces, addresses, DNS servers and routes; --public adds the address the internet sees

pcapai carrier

Carrier & Identity lookups: RCOIs (OpenRoaming and the published table) and PLMN operators (offline)

VerbWhat it does
pcapai carrier rcoiList or search the 58 published RCOIs (empty query lists all)
pcapai carrier decodeDecode RCOIs: match the published table and read OpenRoaming policy bits
pcapai carrier buildBuild an OpenRoaming RCOI from policy choices (unknown choices are refused, not clamped)
pcapai carrier plmnLook up operators by MCC/MNC (310-410, 310410) or by operator or country name
pcapai carrier cell-gradeGrade a cellular received level using operator or Android thresholds
pcapai carrier arfcnConvert an LTE EARFCN or NR-ARFCN using core's cellular raster
pcapai carrier cell-towerLook up a cell only in the local verified OpenCelliD extract (offline)

pcapai goto

Test Go-to-Packet jump scrolling performance on a .pcapai file

pcapai export

Export a .pcapai back out to pcap/pcapng or dissection formats (Wireshark-style)

pcapai notes

Wireshark-style capture/packet comments + capture provenance in a .pcapai

VerbWhat it does
pcapai notes showShow capture comment, capture method/provenance, and packet comments
pcapai notes set-packetSet (replace) a packet's comment
pcapai notes remove-packetRemove a packet's comment
pcapai notes set-captureSet the capture-level (file) comment
pcapai notes set-methodSet the capture method / provenance (e.g.

pcapai dns

DNS analyzer: transactions, servers, sites, health, security, name resolution

VerbWhat it does
pcapai dns summaryCapture-wide DNS totals, variant mix, latency, rcode/qtype histograms
pcapai dns serversPer-server stats: query/response counts, latency, classification
pcapai dns sitesSite/domain inventory (eTLD+1 rollup)
pcapai dns transactionsIndividual DNS transactions (recomputed live from the capture)
pcapai dns healthDNS health report (checks, per-server/per-client grades, QoE)
pcapai dns securityDNS security findings (Pro). Requires the SecurityScanner license feature
pcapai dns resolveResolve an IP to its best passive-DNS name, or a name to its IPs
pcapai dns lookupLook a name up NOW through this machine's resolver (A, AAAA, MX, TXT, NS, SOA, CNAME, PTR, NAPTR, SRV, WHOIS,…

pcapai services

Persisted DNS, DHCP, router advertisement and captive portal evidence

VerbWhat it does
pcapai services summaryNetwork inventory and persisted coverage
pcapai services detailsComplete paged observations; pass next_offset to continue

pcapai merge

find captures that are plausibly one event, and merge the ones you confirm.

VerbWhat it does
pcapai merge detectPropose merge groups. Read-only — nothing is merged, nothing is written
pcapai merge runMerge captures into one pcapng. Explicit file list — this never acts on a proposal by itself