outboundctl maintenance
outboundctl maintenance: list unused rules and rules that need an identity check, turn off an unused rule, approve a retained rule, and repair a rule's code identity.
outboundctl maintenance gives Terminal access to the cleanup findings that Insights shows in the Rules pane: unused rules and rules whose program identity needs attention.
Listing findings
Section titled “Listing findings”outboundctl maintenance list [--window 1w|3w|1m|3m|6m|1y]Prints JSON with the findings, each with its kind, the rule’s UUID and an explanation. --window is how long a rule must have gone without a match to count as unused: one week, three weeks (the default), one month, three months, six months or one year. Usage comes from the background agent. When it has no usage history, the result says “Usage history is unavailable; unused status is unknown.” When it has, it notes: “Observed matches only; unused does not mean unnecessary.”
Acting on a finding
Section titled “Acting on a finding”outboundctl maintenance disable <uuid>outboundctl maintenance approve <uuid> --confirmoutboundctl maintenance repair <uuid> --path <candidate> --signing-id <expected> [--team-id <expected>]disableturns off one unused rule. It stays in your rules, ready to turn back on.approveapproves one rule that was kept but switched off, for example when a profile was removed with--keep-rules. It stays off; turn it on separately.--confirmis required.repairconfirms the executable and signer for a rule whose program changed. Outbound inspects the program at--path, which must match--signing-id;--team-idis required for a signing identifier that is not Apple’s. It is the same asoutboundctl rules repair.
Each of these 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.
Exit status
Section titled “Exit status”Success exits 0, and a change still waiting for approval exits 75. Bad syntax, or approve without --confirm, exits 64. Edit-policy refusals exit 77.