# cli **Repository Path**: leung521/cli ## Basic Information - **Project Name**: cli - **Description**: No description available - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2014-09-16 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README XAE CLI ================= XAE的命令行工具(fork自https://github.com/cloudfoundry/cli) 编译 ======== 1. 安装golang ``` wget http://www.golangtc.com/static/go/go1.2.1.linux-amd64.tar.gz tar xzvf go1.2.1.linux-amd64.tar.gz -C ~ ``` 2. 编译 ```cd ~ && git clone https://git.oschina.net/leung521/cli.git``` ``` export GOROOT=$HOME/go export GOPATH=$HOME/cli export PATH=$PATH:$GOROOT/bin:$GOPATH/bin:$GOPATH/out ``` ```cd $GOPATH && ./bin/build``` cf会生成在目录`./out` 使用 =============== 1. 登录 ```cf api ``` ```cf login``` ```cf target``` 2. 查看已部署的app ```cf apps``` 3. 查看app的状态 ```cf app ``` 4. 查看帮助 ```cf help```