3.1 安装客户端
Deis 命令行接口(CLI),或者客户端,允许你与 Deis Controller 交互。你必须通过安装客户端来使用 Deis。
安装 Deis 客户端
在 Linux 或 Mac OS X 上安装最新版的 Deis
客户端:
$ curl -sSL http://deis.io/deis-cli/install.sh | sh
安装程序把 Deis
放在你的当前目录,但是你应该把它移到你的 $PATH
。
代理支持
设置 http_proxy or https_proxy
环境变量开启代理支持:
$ export http_proxy="http://proxyip:port"
$ export https_proxy="http://proxyip:port"
综合帮助
Deis 客户端为每个命令自带综合的文档,使用 deis help
帮助你查看可用的命令:
$ deis help
The Deis command-line client issues API calls to a Deis controller.
Usage: deis <command> [<args>...]
Auth commands::
register register a new user with a controller
login login to a controller
logout logout from the current controller
Subcommands, use ``deis help [subcommand]`` to learn more::
...
为了获取子命令的帮助信息,使用 deis help [subcommand]
:
$ deis help apps
Valid commands for apps:
apps:create create a new application
apps:list list accessible applications
apps:info view info about an application
apps:open open the application in a browser
apps:logs view aggregated application logs
apps:run run a command in an ephemeral app container
apps:destroy destroy an application
Use `deis help [command]` to learn more