Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to install an app from Play Store using the command line and if yes, how?

What I am trying to accomplish is something similar to using adb install file.apk but instead of an apk file the target would be a package name of a Play Store app (for e.g. adb install

Is something like this possible?

share|improve this question
+0. Why would any Android user ever want to do this? – unforgettableid May 30 at 18:57
up vote 3 down vote accepted

Short Answer : No.

Long Answer :

adb install is a "shortcut" that is equivalent to open a shell (using adb shell) and type pm install. pmstand for package-manager and his behaviour is the same as other package manager in other Linux distributions (like aptitude in Debian or pacmanin Arch Linux) except that pm doesn't fetch package from a distant location.

The Play Store is an application like others, and we can't call android applications like we call a program like a C or "normal" Java program, because the .apk file isn't actually a binary, but a simply zipped package. It is the Dalvik Virtual Machine (sort of equivalent to the Java VM) that deals with running applications. The Play Store application simply download the application you want and then run pm install on the package downloaded.

share|improve this answer

I was looking for the same answer, i can't find a single command to do this, but i found few options that could be useful in such cases:

A. download the .apk to your computer and install the apk from it (just google 'apk downloder' and find one suitable for you):

adb install com.myapp.apk

B. open playstore app from adb and point it to your package, this will look like this:

adb shell am start -a android.intent.action.VIEW -d 'market://details?id=com.myapp'

(i'm sure it can be automated to simulate the neccesarry clicks and install the app, but this requires much more work)

none are as easy as just installing from computer cmd, but that what we have now.

share|improve this answer

If you know the x and y coordinates for the install and accept buttons you can run the following after starting market pointing to app like Ohad Cohen stated

adb shell input touchscreen tap x y - x and y coordinates for install button with space inbetween

pause for a second or 2 then run

adb shell input touchscreen tap x y - x and y coordinates for accept button with space inbetween

then close play store adb shell am force-stop

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.