Download code from Google App Engine Java is now p

2019-08-21 02:43发布

According to Google's AppEngine Group using the pre-released version 1.5.3 you are able to download you code for Java Applications as well.

./appcfg.sh help download_app
AppCfg [options] -A app_id [ -V version ] download_app <out-dir>

Download a previously-uploaded app to the specified directory.  The app
ID is specified by the "-A" option.  The optional version is specified
by the "-V" option.

I tried to run the above command but it is not working.

Did anyone manage to download his/her source code using the above command?

Thanks

The changelog:

AppCfg now supports download_app, which will download all files that were uploaded from your war directory.

2条回答
时光不老,我们不散
2楼-- · 2019-08-21 03:15

On the Developer website it gives this code : Google-Developer

/appcfg.sh download_app -A <your_app_id> -V <your_app_version> <output-dir>

I tried it didn't work. On some articles download_app comes before <output-dir>

So I tried like this and it works fine :

/appcfg.sh -A <your_app_id> -V <your_app_version> download_app <output-dir>
查看更多
趁早两清
3楼-- · 2019-08-21 03:26

Yes, it works with the pre-release SDK. I just tried it:

$ mkdir /path/to/my/backup/dir
$ ./appcfg.sh -A myappid download_app /path/to/my/backup/dir

Or defining a version:

$ ./appcfg.sh -A myappid -V 2 download_app /path/to/my/backup/dir

I downloaded a Python and a Java app, and both worked.

查看更多
登录 后发表回答