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.
Example:open -a /Applications/Android\ Studio.app

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\ Studio.app'
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!
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!