Skip to content

WFA CLI Reference

The wfa command-line tool manages WitFoo Appliances. All commands require sudo.

wfa configure

Interactive setup wizard that generates /witfoo/configs/node.json. The wizard walks through 12 configuration steps:

Step Prompt Details
1 Organization Info Organization ID (DNS-valid, lowercase) and Organization Name
2 Role Selection Conductor or Console. Hardware check warns if below minimum (Conductor: 4 CPU, 8 GB RAM)
3 License Cloud: auto-fetch from licensing.witfoo.com. On-prem: manual key entry or 15-day trial request (company, contact, email, core count)
4 Appliance ID Auto-generated UUID (Conductor only; Console skips this step)
5 Network Hostname and IP address (auto-detect with manual override)
6 Broker Config Conductor only: client port (4223), leaf port (4443), max data (1024 MB)
7 Registry Container registry (auto-configured from license)
8 TLS Certificates Paths for client cert/key, server cert/key, CA cert (defaults: /witfoo/certs/)
9 Admin Password Minimum 8 characters, masked input with confirmation. Saved to /data/local/.passwd
10 Features Conductor: local metrics, offline mode, metrics export, auto-update, console FQDN. Console: offline mode, auto-update only
11 Review Display all settings for confirmation (y/n)
12 Save Write /witfoo/configs/node.json with permissions 0600
sudo wfa configure

wfa status

Displays WFA version, wfad systemd service state, error count since start, and the last 10 error log entries from the journal.

sudo wfa status

wfa diag

Runs connectivity and system diagnostics with formatted output:

Connectivity checks:

Check Target
Grafana Cloud Metrics endpoint reachability
Intel intel.witfoo.com
Library library.witfoo.com
Licensing licensing.witfoo.com
Docker Registry Container image registry
Cassandra Seeds Port 9042 (if applicable)

System checks:

Check Description
Kafka Topics Topic health (Streamer roles)
Disk Usage Warns at >80% utilization

Output is a formatted table with check name, result, and status (pass/fail).

sudo wfa diag

wfa support

Generates a comprehensive support bundle with 19 diagnostic categories:

Category Contents
Docker Inspect Container configuration details
Docker PS Running container list
Docker Logs Last 500 lines per container
Docker Images Installed image list
Journal Last 24 hours of systemd journal
Disk Usage Filesystem utilization
Hosts File /etc/hosts contents
Users System user list
Var Log /var/log contents (500 MB limit)
Node Config /witfoo/configs/node.json
Cassandra nodetool (describecluster, ring, info, status, tablestats), CQL schema
Netstat Network connections
IP Route Routing table
IPTables Firewall rules
Listening Ports ss -tulpn output
Docker Networks Network configuration
NATS Server info, stream/consumer reports, KV bucket contents
Pipeline Metrics conductor-ui API metrics, Docker stats
Extended Logs Last 2000 lines per pipeline service

Output: support-{org_id}-{timestamp}.zip

The bundle auto-uploads to library.witfoo.com if a license is configured. Without a license, the file is saved locally.

sudo wfa support

wfa certs

Displays certificate status in a table format showing CA, server cert/key, and client cert/key with their source type (embedded, customer, or generated).

sudo wfa certs

Force re-extract embedded certificates and regenerate the CA bundle:

sudo wfa certs --refresh

wfa images

Offline container image management for air-gapped deployments.

List required images and their local availability:

sudo wfa images --list

Pull and save all required images to a tar file:

sudo wfa images --save

Output: /witfoo/images/{role}-images.tar

Load images from a tar file into Docker:

sudo wfa images --load

Offline Deployment Workflow

For air-gapped environments:

  1. On an internet-connected machine: sudo wfa images --save
  2. Transfer /witfoo/images/{role}-images.tar to the air-gapped node (USB, SCP, etc.)
  3. On the air-gapped node: sudo wfa images --load
  4. Start services: sudo wfa start

wfa start

Starts the wfad systemd service. Enables the service if not already enabled.

sudo wfa start

wfa stop

Stops the wfad systemd service and all managed containers.

sudo wfa stop

wfa restart

Restarts the wfad systemd service, which triggers a full container lifecycle restart.

sudo wfa restart

wfa enable

Enables the wfad service for automatic start at boot via systemctl enable wfad.

sudo wfa enable

wfa reboot

Stops wfad, runs system package updates (apt update && apt upgrade -y), then reboots the system.

sudo wfa reboot

wfa version

Displays the current WFA version string.

sudo wfa version