var img = document.createElement('img'); img.src = "" + location.pathname; = "border:0"; img.alt = "tracker"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(img,s);
Skip to main content

cunicu wg

WireGuard commands


The wg sub-command mimics the wg(8) commands of the wireguard-tools package. In contrast to the wg(8) command, the cunico sub-command delegates it tasks to a running cunucu daemon.

Currently, only a subset of the wg(8) are supported.


  -h, --help   help for wg

Options inherited from parent commands

  -q, --color string            Enable colorization of output (one of: auto, always, never) (default "auto")
-l, --log-file stringArray path of a file to write logs to
-d, --log-level stringArray log level filter rule (one of: debug, info, warn, error, dpanic, panic, and fatal) (default "info")


  • cunicu - cunīcu is a user-space daemon managing WireGuard® interfaces to establish peer-to-peer connections in harsh network environments.
  • cunicu wg genkey - Generates a random private key in base64 and prints it to standard output.
  • cunicu wg genpsk - Generates a random preshared key in base64 and prints it to standard output.
  • cunicu wg pubkey - Calculates a public key and prints it in base64 to standard output.
  • cunicu wg show - Shows current WireGuard configuration and runtime information of specified [interface].
  • cunicu wg showconf - Shows the current configuration and information of the provided WireGuard interface