The
App Engine PHP SDK
includes a command for interacting with App Engine named
appcfg.py
. You can use this command to upload new versions of the code, configuration and static files for your app to App Engine. You can also use the command to download log data.
Note: If you created your project using the Google Cloud Console, your project has a title and an ID. In the instructions that follow, the project title and ID can be used wherever an application title and ID are mentioned. They are the same thing.
- Uploading the app
- Updating Task Queue configuration
- Updating the DoS protection configuration
- Managing scheduled tasks
- Downloading source code
- Downloading logs
- Using an HTTP proxy
- Password-less login with OAuth2
- Command-line arguments
Uploading the app
To upload application files, run the
appcfg.py
command with the
update
action and the name of your application's root directory. The root directory should contain the
app.yaml
file for the application.
appcfg.py update myapp/
appcfg.py
gets the application ID from the
app.yaml
file, and prompts you for the email address and password of your Google account. After successfully signing in with your account,
appcfg.py
stores a "cookie" so that it does not need to prompt for a password on subsequent attempts.