pache starts提供CLI(command line interface)工具,用来管理starts上的应用程序。
关于如何下载和配置,可以看下面这篇文章。
CLI Tool可以两种模式运行。
- Interactive mode
交互方式,走走停停。
- Single command line mode
只执行一次命令
Interactive mode
1.登录,必要时输入管理帐号和密码
执行下面的命令
./stratos.sh
比如:
James:bin jameswest$ ./stratos.sh
Username: admin
Password: *****
Successfully authenticated
2.帮助
登入成功之后,输入help即可
如图
3.自动完成功能。类似终端都有的自动补写命令功能,只要按下Tab键就可以了
支持的命令
activate-tenant add-application add-autoscaling-policy add-cartridge add-cartridge-group
add-deployment-policy add-domain-mappings add-kubernetes-cluster add-kubernetes-host add-network-partition
add-tenant add-user create-application deactivate-tenant deploy-application
describe-application describe-application-runtime describe-application-signup describe-autoscaling-policy describe-cartridge
describe-cartridge-group describe-deployment-policy describe-kubernetes-cluster describe-kubernetes-master describe-network-partition
describe-tenant exit help list-applications list-autoscaling-policies
list-cartridge-groups list-cartridges list-cartridges-by-filter list-deployment-policies list-domain-mappings
list-kubernetes-clusters list-kubernetes-hosts list-network-partitions list-tenants list-tenants-by-partial-domain
list-users remove-application remove-application-signup remove-autoscaling-policy remove-cartridge
remove-cartridge-group remove-deployment-policy remove-domain-mappings remove-kubernetes-cluster remove-kubernetes-host
remove-network-partition remove-user synchronize-artifacts undeploy-application update-autoscaling-policy
update-cartridge update-deployment-policy update-kubernetes-host update-kubernetes-master update-network-partition
update-tenant update-user
Single command line mode
只执行一条单一的命令。
格式:
./stratos.sh -u [username] -p [password] [action commands]
比如:
图中的这些cartridges,也可以在UI界面上直接查看。(这里的esb,nodejs什么版本的,都只是自己测试时候,瞎写的,可能有些参数是不对的,不如上面都是版本7啊什么的)
对应的UI界面