title: How to upload apk to google play store via command line
body: <p>Since my application is built and packaged with ant, I also want to automate uploading the generated apk to play store. A command line tool like Apple's ApplicationLoader would be great for this task. <a href="https://stackoverflow.com/questions/3450288/itunes-application-loader-automation">Example</a>;</p>
  
  <p>$ altool --upload-app -f file -u username [-p password] [--output-format xml]</p>
  
  <p>I know an <a href="https://developers.google.com/android-publisher/api-ref/edits/apks/upload#http-request" rel="nofollow noreferrer">android-publisher api</a> and some <a href="https://developers.google.com/android-publisher/libraries" rel="nofollow noreferrer">api libraries</a> exists but you need to write your own app to manage the complicated flow. There are some command line <a href="https://github.com/codepath/android_guides/wiki/Automating-Publishing-to-the-Play-Store" rel="nofollow noreferrer">tools</a> for Gradle and Jenkins which are not helpful when using ant.</p>
  
  <p>Is there already a command line tool for uploading to playstore or should I write my own tool by implementing the android-publisher api?</p>