bluetoothconnector

Connect and disconnect Bluetooth devices from the command line.

brewmacoslinux
Try with needOr install directly
Source

About

Connect and disconnect Bluetooth devices

Commands

bluetoothconnector

Examples

list all paired bluetooth devices$ bluetoothconnector --list
connect to a bluetooth device by name$ bluetoothconnector --connect 'AirPods Pro'
disconnect a bluetooth device$ bluetoothconnector --disconnect 'Sony Headphones'
show connection status of a device$ bluetoothconnector --info 'Device Name'
toggle bluetooth device connection on and off$ bluetoothconnector --toggle 'Bluetooth Speaker'