outboundctl networks
outboundctl networks: list known networks, rename and label them, choose the profile each one switches to, remove them, and set the recognition options.
outboundctl networks manages the known networks that profiles switch on. It is the Terminal side of Known Networks in Settings › Profiles. Every command except list is a change. It follows the edit policy, waits for your approval in Outbound unless the policy lets it through, and accepts --dry-run, --plan and --no-wait.
Listing networks
Section titled “Listing networks”outboundctl networks listPrints the known networks and the recognition options as JSON. Each network has a UUID, which the other commands take.
Naming and labelling
Section titled “Naming and labelling”outboundctl networks rename <uuid> <name>outboundctl networks label <uuid> --location <text>label sets the optional location label you type. Pass an empty string to clear it. Outbound never measures a position.
Choosing the profile
Section titled “Choosing the profile”outboundctl networks assign <uuid> <profile|none|keep>The profile is a name or UUID. none switches to no profile on that network. keep keeps whatever profile is active and stops Outbound asking about that network.
Forgetting a network
Section titled “Forgetting a network”outboundctl networks remove <uuid>Recognition options
Section titled “Recognition options”outboundctl networks options [--wifi-names on|off] [--vpn-servers on|off]--wifi-names shows Wi-Fi names, which needs macOS Location permission; switching never depends on it. --vpn-servers tells the servers of one VPN apart, so each server can be its own network.
Exit status
Section titled “Exit status”Success exits 0, and a change still waiting for approval exits 75. An unknown network UUID, or bad syntax, exits 64. An unknown profile exits 66. Edit-policy refusals exit 77.