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 helpThe Deis command-line client issues API calls to a Deis controller.Usage: deis <command> [<args>...]Auth commands::register register a new user with a controllerlogin login to a controllerlogout logout from the current controllerSubcommands, use ``deis help [subcommand]`` to learn more::...
为了获取子命令的帮助信息,使用 deis help [subcommand]:
$ deis help appsValid commands for apps:apps:create create a new applicationapps:list list accessible applicationsapps:info view info about an applicationapps:open open the application in a browserapps:logs view aggregated application logsapps:run run a command in an ephemeral app containerapps:destroy destroy an applicationUse `deis help [command]` to learn more
