Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

With Google App Engine, why do I now get "command not found" when running the appcfg.py command on my local machine?

This started after I ran the latest gcloud update:

gcloud components update

I used to be able to deploy my app something like this:

appcfg.py update app.yaml

Now I get:

appcfg.py: command not found

Is there a new gcloud command for deploying App Engine apps?

like image 682
klenwell Avatar asked Nov 16 '25 04:11

klenwell


2 Answers

It appears the most recent version of gcloud dropped appcfg.py from the bin directory.

$ ls ~/google-cloud-sdk/bin/
bootstrapping  bq  dev_appserver.py  gcloud  git-credential-gcloud.sh  gsutil

I found the appcfg.py script under the platform directory:

$ ls ~/google-cloud-sdk/platform/google_appengine
api_server.py           dev_appserver.py      LICENSE               RELEASE_NOTES
appcfg.py ...

By linking it back to the bin directory, I was able to restore the command.

ln -sv ~/google-cloud-sdk/platform/google_appengine/appcfg.py ~/google-cloud-sdk/bin/

Credit to this post for helping me to figure this out.

like image 95
klenwell Avatar answered Nov 18 '25 19:11

klenwell


gcloud app deploy is the preferred way when using gcloud. If you download the stand alone Google App Engine SDK, then you will have appcfg.py available.

https://cloud.google.com/sdk/gcloud/reference/app/deploy

like image 43
Josh J Avatar answered Nov 18 '25 19:11

Josh J



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!