outboundctl groups
outboundctl groups: list, create, rename, subscribe to, turn on or off, refresh, approve, move rules into and remove rule groups.
outboundctl groups manages rule groups: local groups you fill with your own rules, and remote groups you subscribe to in the .lsrules format. 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.
A group is named by its name or its UUID.
Listing groups
Section titled “Listing groups”outboundctl groups listPrints the groups as JSON, with each group’s UUID.
Creating and editing a local group
Section titled “Creating and editing a local group”outboundctl groups create <name> [--description <text>]outboundctl groups set <name-or-uuid> [--name <text>] [--description <text>]set needs --name, --description or both.
Subscribing to a remote group
Section titled “Subscribing to a remote group”outboundctl groups subscribe <name> --url <https-url> [--pin <sha256>] [--description <text>]Downloads the group, checks it, and asks to add it. --pin is the SHA-256 the downloaded content must match. As with blocklists, new allow rules in a group wait for your approval before they apply.
Turning a group on or off, and refreshing it
Section titled “Turning a group on or off, and refreshing it”outboundctl groups enable <name-or-uuid>outboundctl groups disable <name-or-uuid>outboundctl groups refresh <name-or-uuid>refresh downloads a remote group again. A refresh that changes the group’s rules waits for review.
Approving a refresh
Section titled “Approving a refresh”outboundctl groups approve <name-or-uuid> --confirm [--rules <uuid,uuid,…>]Confirms a reviewed refresh, or the group’s pending allow rules. --confirm is required. --rules names the pending allow rules to approve; allows you leave out stay pending.
Moving rules
Section titled “Moving rules”outboundctl groups move <name-or-uuid> --rules <uuid,uuid,…>outboundctl groups move --ungroup --rules <uuid,uuid,…>Moves editable local rules into a local group, or with --ungroup out of their groups. --ungroup takes no group name.
Removing a group
Section titled “Removing a group”outboundctl groups remove <name-or-uuid> [--keep-rules]outboundctl groups delete <name-or-uuid> [--keep-rules]outboundctl groups unsubscribe <name-or-uuid> [--keep-rules]remove deletes a local group or unsubscribes from a remote one. delete removes the group and its rules. unsubscribe works only on remote groups. With --keep-rules, the group’s installed rules stay, outside any group, instead of being deleted.
Exit status
Section titled “Exit status”Success exits 0, and a change still waiting for approval exits 75. Bad syntax exits 64. A group that cannot be read, checked or refreshed exits 65. Edit-policy refusals exit 77. See exit codes.