Bash script for quickly installing ADB and Fastboot on macOS and Linux.
Clone or download

Nexus Tools logo

Nexus Tools is an installer for the Android debug/development command-line tools ADB (Android Device Bridge) and Fastboot for Mac OS X and Linux. Chrome OS isn't officially supported, but it is possible to get it working.

The script does not need to be downloaded, simply copy and paste this command into the terminal and run it to install ADB/Fastboot:

bash <(curl -s

and this command to un-install ADB/Fastboot:

bash <(curl -s

Note: If you install Nexus Tools and running 'adb' or 'fastboot' does nothing, run this command to add it to your path variable:


These commands will download the selected script and run it. The script will download the files it needs during runtime, so it requires an internet connection. The script works on both Mac OS X and Linux (as long as the curl package is installed).

Alternate Install

If you have errors with the above install command, you can try this one:

cd ~ && curl -s -o ./ "" -LOk && chmod +x ./ && ./ && rm ./

and to un-install:

cd ~ && curl -s -o ./ "" -LOk && chmod +x ./ && ./ && rm ./

XDA Thread:

XDA Article:

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <>.