title: appengine java command line deploy, refresh token
body: <p>What is the appropriate way to deploy a Java AppEngine app via the command line without requiring a google username / password or any user input?</p>
  
  <p>I'm able to do this with Python / Go apps using the --oauth2 command, retrieving the refresh_token from the .appcfg_oatuh2_tokens json file, and then running the following command:</p>
  
  <pre><code>appcfg.py --oauth2_refresh_token=$MY_TOKEN update hello-world-app/
  </code></pre>
  
  <p>But I haven't been able to figure out an equivalent for Java. I'd like to add Java Appengine deploys to our CI product, <a href="https://drone.io" rel="nofollow">drone.io</a>, to compliment our existing Heroku and Dotcloud deployment options. Any advice?</p>