Toggle Bluetooth from Command Line on Mac OS

There will be situations where you can't access the touchpad or just want to show off your command line skills 😋, then this commands will change your Bluetooth handling skill
It'll be clearly handy to use it.

Finding new ways led me to this blueutil command line tool that helps to turn Bluetooth off/on using single cmd.

Start by installing it by HomeBrew:
run the following command
brew install blueutil
view raw install.command hosted with ❤ by GitHub


The -p flag act as a switch to toggle the Bluetooth

# Turn bluetooth off
blueutil -p 0
# Turn bluetooth on
blueutil -p 1
view raw install.command hosted with ❤ by GitHub

Tell me when you found this command helpful.

Popular posts from this blog

Audio de-noising using Python (Wavelets)

Converting HTML5 Game for Android | 2 Methods

Display a table in JFrame UI from MySQL Table