2

For scripting purposes I want to be able to do nightly builds and upload .AAB to my closed testing channel.

Is it possible to do this from a command line or am I stuck using a human to point and click on Google Developer Console?

spartygw
  • 3,289
  • 2
  • 27
  • 51
  • Have you looked at [Google Play Developer Publishing API](https://developers.google.com/android-publisher#publishing) – Morrison Chang Oct 15 '21 at 19:20
  • Well that is really interesting @MorrisonChang. Definitely looks like what I want, never knew it existed. Thanks. Turn your comment into an answer and I'll accept it. – spartygw Oct 15 '21 at 20:16

1 Answers1

3

For automating uploading/deployment of Android apps, probably as part of a CI/CD system rather than command line, Google provides a Google Play Developer Publishing API

Publishing API

The Google Play Developer Publishing API allows you to automate frequent tasks having to do with app production and distribution. This provides functions similar to those available to a developer through the Play Console, such as:

  • Uploading new versions of an app

  • Releasing apps, by assigning APKs to various Tracks (alpha, beta, staged rollout, or production)

  • Creating and modifying Google Play Store listings, including localized text and graphics and multi-device screenshots

Those tasks are performed using the new edits functionality, which take a transactional approach to making changes; you bundle several changes into a single draft edit, then commit the changes all at once. (None of the changes take effect until the edit is committed.)

Documentation does have a Getting Started section with details on APKs and tracks. Additionally check API Usage limitations as well as upload requirements

Morrison Chang
  • 11,691
  • 3
  • 41
  • 77