How can I turn on bluetooth via the terminal / the command line?
Turn on bluetooth via terminal/command line
bluetoothterminal
Related Question
- MacOS – How to disable Bluetooth Sharing via terminal
- How to select the Bluetooth device using command line
- MacOS – How to restart Bluetooth service from command line
- MacOS – Connect to Bluetooth device via terminal
- MacOS – How to set the terminal tab title via command line
- How to add the wifi and bluetooth icon to the menubar programatically (from the command line)
Best Answer
There is an answer over at Superuser. The last post there is what I found to work best, in a slightly different form. The 'checkbox "On"' did not work for me, but the following code did:
You can execute this script using osascript.
Update: I now changed the script to just enable Bluetooth. No toggling anymore.