#!/bin/bash cliShowPeerHelp() { isHeader "LibrePortal Peer Commands" echo "Manage named references to other LibrePortal instances." echo "" echo "peer list" echo " JSON dump of every peer record (id, kind, config, status)." echo "" echo "peer get " echo " JSON for a single peer." echo "" echo "peer add backup-channel hostname= [loc_idx=]" echo " Add a friendly label for another LibrePortal whose backups land in" echo " a location this host can see. loc_idx defaults to 'any enabled'." echo "" echo "peer remove " echo " Delete the local peer record. Doesn't touch the other host or any" echo " backups — just removes the label." echo "" echo "peer check [name]" echo " Reachability probe. With , checks one; without, all. Updates" echo " the peer's status + last_seen columns." echo "" echo "Notes:" echo " • Today only kind=backup-channel works. direct-ssh-direct and" echo " direct-ssh-via-relay (Connect blind-relay) ship with Phase 3." }