Toggle Bluetooth Power with blueutil

Turn Bluetooth on or off from the macOS command line using blueutil.

macOSbluetoothTerminalLow risk
blueutil --power toggle

01Command

Command
$ blueutil --power toggle

02What it does

blueutil is a CLI for Bluetooth on macOS. The --power option sets the Bluetooth power state, and the special value `toggle` flips it — handy for scripting or switching off Bluetooth without opening System Settings. Install it with `brew install blueutil`. You can check the current state with `blueutil --power`, which prints 1 (on) or 0 (off).

03Risk

RiskLow risk
RequirementsInstall via Homebrew: brew install blueutil
!Warning: blueutil refuses to run as root by default; if needed, use `sudo BLUEUTIL_ALLOW_ROOT=1 blueutil …`. Opening the Bluetooth preference pane may also change discoverability in ways blueutil does not report.

04Undo

Undo
$ blueutil --power toggle

05Sources

Last verified: 2026-09-21 · Category: System & Settings

06Related solutions