是否有任何机制可以从命令行而不是通过网络浏览器将 .AAB 更新上传到 Google Play?

Is there any mechanism for uploading .AAB updates to Google Play from command line rather than thru a web browser?

出于脚本目的,我希望能够进行夜间构建并将 .AAB 上传到我的封闭测试频道。

是否可以从命令行执行此操作,还是我必须使用人工指向并单击 Google 开发者控制台?

为了自动化 uploading/deployment 的 Android 应用程序,可能作为 CI/CD 系统的一部分而不是命令行,Google 提供了 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.)

文档确实有 Getting Started section with details on APKs and tracks. Additionally check API Usage limitations as well as upload requirements