Mac: How to Open Android Studio from Terminal

As a developer, we all tend to work a lot on the Terminal, and it's much easier to open an application via the Terminal. If you want to open Android Studio from the Terminal, you can make use of the open command followed by the path of the app from the Applications folder.

open -a /Applications/Android\
Open Android Studio from Terminal

If you frequently open this app via the terminal, more easier way is to create an alias for this command and store it in .zshrc/bash_profile file.

Open ~/.zshrc file and create an alias.

nano ~/.zshrc

Add the below lines,

alias android-studio='open -a /Applications/Android\'

Now it makes it much easier, all you need to do is type in android-studio in the Terminal and you have the app open!


Have Questions? Post them here!