Baxter
Baxter

Reputation: 2446

Automating Google App Engine Uploads

I'm trying to automate the upload of a google app engine (java) project, there's not problem using the ant macros to upload to a single user+password combination as after the first manual login through appcfg but when I want to switch to another account I need to re-input the password through the stdin in appcfg.

I don't seem to be able to find a way to pass the password as a switch to appcfg only the username has anyone successfully automated this process or have any ideas on how to go about it?

Upvotes: 4

Views: 337

Answers (2)

David Underhill
David Underhill

Reputation: 16233

You can tell appcfg to read your password from standard input by passing the --passin switch. Then you can redirect standard input to read your password from a file like this to avoid having appcfg prompt you for anything:

appcfg.py update /path/to/my/app [email protected] --passin < /path/to/my/pass

Upvotes: 4

Related Questions