Struggling to run adb command on your terminal in Mac? You have come to the right place. Android Debug Bridge (adb) is a powerful tool which lets us communicate with our android device. It is great tool to install and debug your android app. Let's get started!

Open your terminal and navigate to the Home directory by running the following command:

cd ~

After that we need to open .bash_profile file so that we can add our adb tool to the global path.

open -e .bash_profile

Add the following line to the bottom of the file to add Android platform tools to the environment PATH.

export PATH=$PATH:/Users/Shashwat/Library/Android/sdk/platform-tools/

Here replace Shashwat with your own Mac username. And that's pretty much it. Now save this file. Close and re-open the terminal and type the following command to see if adb is working:

adb version

You will see a similar output on the terminal:

Android Debug Bridge version 1.0.41
Version 29.0.6-6198805
Installed as /Users/Shashwat/Library/Android/sdk/platform-tools/adb

Happy coding!