Skip to content

CLI reference ​

Every waap command and flag. waap -h lists the commands, and waap <command> -h lists the flags. For the quick start, see docs/running.md. For tasks by feature, see Protect and the other sections. For problems, see Troubleshooting.

Conventions ​

  • Server commands (run, control, inspect) run the product. Administration commands talk to the running Spalto on the same machine over its owner-only admin socket (control.sock in -runtime-dir). Only the account that runs Spalto (or root) can use them. They have no network access and no login: shell access to the node is the authority.
  • -runtime-dir DIR: every administration command accepts it. It must match the running Spalto's. Default: $TMPDIR/waap.
  • -json: prints the answer as JSON instead of a table. Most administration commands accept it.
  • Durations use Go syntax: 90s, 15m, 1h, 720h.
  • Times (-since, -until) are a duration back from now (24h), or RFC 3339 (2026-10-24T09:00:00Z).
  • Exit codes: 0 success, 1 failure (including a failed audit verify), 2 wrong usage.
  • Errors go to stderr. Results go to stdout.

Flag order ​

Go flag parsing stops at the first non-flag argument. Put every flag before positional arguments and KEY=VALUE pairs, for example waap apps set -app shop -m "note" policy.mode=block.

Pages ​

PageWhat it covers
Build commandsMake targets for benchmarks, SBOMs, releases and packages, and the waap version, sbom and licenses commands.
Server commandswaap run, control, inspect, setup, validate, devcert, geoip and the internal Envoy guard.
Applications, listeners and proxiesApplications and their settings, certificates and CAs, listeners (virtual servers), VIPs and trusted proxies.
Configuration overview and warningsThe overview, warnings, an application's picture, its request path and a request trace.
Server poolsPools: list, get, health, fields, add, set, remove, rename, merge and CA.
Access rules, rate limits and exceptionsReading and replacing the rule lists, and rate-limit suggestions.
ConfigurationConfiguration versions: list, show, diff, apply, diverged versions, pull and rollback.
Security eventsListing, grouping, showing and exporting events, plus explain and except.
Traffic logListing, showing and exporting the per-request traffic log.
Analytics, saved filters and dashboardsAnalytics queries, saved filters and dashboards.
API protectionAPI posture, settings, descriptions, identity, XML and SOAP, WS-Security, learned schemas, attestation, rewrites, ownership, flows, LLM endpoints, SSRF, MCP and API keys.
Bot mitigationBot settings, the response ladder, challenges, CAPTCHA, signature agents, the catalog and shared fingerprint and file lists.
ICAP antivirus serversICAP servers for file scanning, including their test, CA and client certificate.
Response protectionSecurity headers, the response scope, and custom block and error pages.
Cookie protectionCookie settings, protected cookies, script tracking, the cookie inventory and keys.
Session protectionSession binding settings, mismatches and session keys.
CSRF, CORS, data leaks, uploads and virtual patchesCSRF, CORS, data leak prevention, file upload checks and virtual patches.
Assessment scan targetsScan targets, their scan logins, and the optional PentAGI agent.
AssessmentsPlanning, running and watching assessments, issues, triage, protections and reports.
Validationwaap prove: scanning UAT copies, switching to block, and reporting.
Bans and listsBans and address lists.
Settings shared by every applicationNode-wide settings for events, traffic, GeoIP, analytics, management, HA and the analyst, and the bot catalog.
SIEM exportSIEM destinations, their CA and client certificates.
Accounts and auditFirst administrator, accounts, passwords, the audit log and its verification.
Backup and restoreEncrypted backups and restore onto a fresh data directory.
Upgrade (waap upgrade)Checking, backing up, migrating and rolling back an upgrade.
High availabilityForming, joining, inspecting, leaving and switching over a pair of nodes.
Positive model learningThe positive model: settings, learned model, violations, suggestions, approval, previews and manual rules.
Security analyst (waap analyst)The offline AI analyst: questions, summaries, digests, providers, local models and settings.
Mapping data (make update-mappings)Regenerating the CWE, CAPEC and ATT&CK mapping files.