好像谷歌云的shell命令是超级有限的。
我可以看到有关使用appcfg.py从app引擎上传和下载代码的文档,但是获取有关它的基本信息的命令是什么?
有列表服务命令吗? 或者运行版本命令? 我仍然不明白我上传的应用引擎代码在哪里。
有什么命令可以“戳”app引擎的东西?
Seems like google cloud's shell commands are super limited.
I can see docs about using appcfg.py to upload and download code from app engine, but what are the commands to just get basic info about it?
Is there a list services command? Or a get running versions command? I still don't understand where the app engine code I upload lives.
What are the commands to just "poke" app engine stuff?
最满意答案
要获取有关appcfg.py可以执行的操作的信息:
$ appcfg.py help Usage: appcfg.py help <action> appcfg.py: error: Expected a single action argument. Must be one of: ... list_versions: List all uploaded versions for an app. ... $ appcfg.py help list_versions Usage: appcfg.py [options] list_versions [directory] List all uploaded versions for an app. The 'list_versions' command outputs the uploaded versions for each module of an application in YAML. The YAML is in formatted as an associative array, mapping module_ids to the list of versions uploaded for that module. The default version will be first in the list. ...这个天比appcfg.py和官方推荐的更新一些(但仍未涵盖控制台的所有内容)是来自Cloud SDK的gcloud CLI(特别是GAE应用程序的gcloud app子菜单)。
您上传的代码存在于云端:) Donno究竟在哪里,但您可以在Console的Debug页面中看到它。 无法从云外壳的VM(AFAIK)直接访问。 如果您想在云外壳中访问它,则需要将其从您的应用程序下载到“cloud homedir”(使用其中一个实用程序)。
至于“戳”,你必须非常具体,因为不同类型的戳是以不同的方式完成的(很多只在GUI中)。 可能更好地在一个单独的问题(或问题)中做到这一点。
To get info about what appcfg.py can do:
$ appcfg.py help Usage: appcfg.py help <action> appcfg.py: error: Expected a single action argument. Must be one of: ... list_versions: List all uploaded versions for an app. ... $ appcfg.py help list_versions Usage: appcfg.py [options] list_versions [directory] List all uploaded versions for an app. The 'list_versions' command outputs the uploaded versions for each module of an application in YAML. The YAML is in formatted as an associative array, mapping module_ids to the list of versions uploaded for that module. The default version will be first in the list. ...A bit newer than appcfg.py and the officially recommended one these days (but still not covering all the stuff from the Console) is the gcloud CLI from the Cloud SDK (and in particular the gcloud app submenu for GAE apps).
Your uploaded code lives in the cloud :) Donno exactly where, but you can see it in the Console's Debug page. Not directly accessible from the cloud shell's VM (AFAIK). If you want to access it in the cloud shell you need to download it from your app to your "cloud homedir" (using one of the 2 utilities).
As for "poking", you have to be very specific as different kinds of poking are done in different ways (many in the GUI only). Probably better to do it in a separate question (or questions).
更多推荐
发布评论