OS Manuals

/usr/bin/wg

Next generation secure network tunnel: userspace tools

From wireguard-tools 1.0.20260223-r2 (os), captured 2026-11-05 by running wg --help (exit 0). permalink

Usage: /usr/bin/wg <cmd> [<args>]

Available subcommands:
  show: Shows the current configuration and device information
  showconf: Shows the current configuration of a given WireGuard interface, for use with `setconf'
  set: Change the current configuration, add peers, remove peers, or change peers
  setconf: Applies a configuration file to a WireGuard interface
  addconf: Appends a configuration file to a WireGuard interface
  syncconf: Synchronizes a configuration file to a WireGuard interface
  genkey: Generates a new private key and writes it to stdout
  genpsk: Generates a new preshared key and writes it to stdout
  pubkey: Reads a private key from stdin and writes a public key to stdout
You may pass `--help' to any of these subcommands to view usage.

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.