How to upload an Android app to the app store via command line
Asked Answered
M

2

9

I found this question for iOS and basically worry about the same thing for Android.

As part of the countinues integration process of my Android application, I want to create a process that will automatically upload the app (.apk) file to the Google PlayStore.

I found this website explaining how to create an .apk automated.

So I wonder if there is a way to upload the .apk file to the PlayStore via command line?

Morphophonemics answered 17/2, 2014 at 12:44 Comment(3)
Nothing that is documented and supported.Savoirvivre
To upload an app to Apple App Store, you should do it on Xcode. But for Android Play Store, you have to use Google Play Developer Console, which is a website. So, i don't think it's possible to publish an app by using command line.Pino
AFAIK, there is no way to do this at the moment. You have to use the Google Developer Console to release your application.Abercromby
A
3

These days you can do this fairly easily with Gradle Play Publisher:

plugins {
    id 'com.android.application'
    id 'com.github.triplet.play' version 'x.x.x'
}

android {
    ...
}

play {
    serviceAccountCredentials = file("your-credentials.json")
}

Then it's as simple as running ./gradlew publishApk.

Amelia answered 11/5, 2020 at 2:55 Comment(0)
S
1

This API should do it, as long as you are not publishing new app, but new version of an existing app. I've not used it yet though. https://developers.google.com/android-publisher/

You could also use Jenkins, there is Jenkins plug-in for this purpose: https://wiki.jenkins-ci.org/display/JENKINS/Google+Play+Android+Publisher+Plugin

Smithsonite answered 4/12, 2015 at 13:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.