CmdID

CmdID / Commands

wg

Manage the configuration of WireGuard interfaces. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Check status of currently active interfaces

sudo wgIdentify

Check status of the specified interface

sudo wg show interfaceIdentify

Generate a new private key and print it to stdout

wg genkeyIdentify

Generate a public key from a private key and print it to stdout

wg <path/to/private_key pubkeyIdentify

Generate a public and private key and save them to files

wg genkey | tee path/to/private_key | wg pubkey >path/to/public_keyIdentify

Generate a pre-shared key and print it to stdout

wg genpskIdentify

Show the active configuration of an interface

sudo wg showconf interfaceIdentify