Search code examples
macosandroid-studio

Open AndroidStudio project from command line on OSX


I would like to open an AndroidStudio project from the command line on my Mac. Something like:

~ $ AndroidStudio --path ~/my_android_project

Is this possible in some way?


Solution

  • Easiest way to use it from command line is to create a shortcut using Android Studio's built in tool: Menu --> Tools --> Create command line launcher.

    After that, just call studio myprojectname.

    enter image description here