AppEngine Command Line Tools
Features and Commands
- Create an application - create
- Update an application - update
- Delete an application - delete
- Change the number of application instances - replica
- Help - help
Help
Help will appear when there is an input error or when you use -h or help in the command
Create an Application
In the automatic deployment tool, forced requirement that the first parameter of each operation is the region name
../deploy create cnbj .....
The keyword to create the application is -c (or -create), directly followed by the string of the created application, or by providing the JSON file address of the string
./deploy create cnbj /usr/local/test/autoDeploy/example-k8s-app-2.json .....
Table of Regions
Region | Name |
---|---|
AWS-Beijing | cnbj |
KSYun-Beijing6 | cnbj6 |
Update an Application
In the automatic deployment tool, forced requirement that the first parameter of each operation is the region name
./deploy update cnbj
The keyword to update the application is -u (or -update), directly followed by the string of the updated application, or by providing the JSON file address of the string. The updated application also has two required parameters, -n (or -namespace) and -a (or -app).
./deploy update cnbj /usr/local/test/autoDeploy/example-k8s-app-2.json -n devtest-test4 -a wangping-goserver
Delete an Application
In the automatic deployment tool, forced requirement that the first parameter of each operation is the region name
./deploy delete cnbj
The keyword to delete the application is -d (or -delete). The deleted application also has two required parameters, -n (or -namespace) and -a (or -app).
./deploy delete cnbj -n devtest-test4 -a wangping-goserver
Change the Number of Application Instances
In the automatic deployment tool, forced requirement that the first parameter of each operation is the region name
./deploy replica cnbj
The keyword to change the number of application instances is -r (or -replica). The change of the number of application instances also has three required parameters, -n (or -namespace) and -a (or -app) as well as -rc (or replica-count)
./deploy replica cnbj -n devtest-test4 -a wangping-goserver -rc 2
The automatic deployment tool uses ak and sk authentication, requiring users to provide a aksk file directory, use -f (or filepath), or use the default file address ./config/config.properties
Application Sample JSON File
(Chrome: Right click on the link, select "Open Link in new tab"; Firefox: Right-click on the link, select "Save link as ...")
Download Tools
(Chrome: Right click on the link, select "Open Link in new tab"; Firefox: Right-click on the link, select "Save link as ...")