You don’t need to install the entire android development environment to get the adb now. Google collectively refers to ADB, fastboot, and a few other utilities as the Platform Tools package and has provided them seperately now. This post is assuming you don’t have android sdk or android studio installed.
Install adb on MacOSX using Homebrew
This is the easiest way and will provide automatic updates.
Install adb manually
- Download your OS specific zip of platform tools from here.
- Extract the contents of the .zip file to a folder you can find later.
- Navigate to the extracted folder using your terminal, and there you will find the adb command.
- Run the command normally once you’re in to the extracted folder-