blueutil

Control Bluetooth power and discoverability from the command line.

brewmacoslinux
Try with needOr install directly
Source

About

Get/set bluetooth power and discoverable state

Commands

blueutil

Examples

turn bluetooth on or off$ blueutil power 1
check if bluetooth is currently enabled$ blueutil power
make mac discoverable to other devices$ blueutil discoverable 1
list all paired bluetooth devices$ blueutil --paired
connect to a specific bluetooth device$ blueutil connect 00:11:22:33:44:55