StorageOS client for Mac/Linux/Windows
See also Command Line Reference.
The CLI client needs to know the StorageOS server address, username and password. Configuration is supplied through environment variables:
export STORAGEOS_HOST=<ip_address:port>
export STORAGEOS_USERNAME=<your username>
export STORAGEOS_PASSWORD=<your password>
Choose either the binary or Docker installation methods. Once installed, usage should be the same.
sudo -i
curl -sSL https://github.com/storageos/go-cli/releases/download/0.10.0/storageos_linux_amd64 > /usr/local/bin/storageos
chmod +x /usr/local/bin/storageos
exit
sudo -i
curl -sSL https://github.com/storageos/go-cli/releases/download/0.10.0/storageos_darwin_amd64 > /usr/local/bin/storageos
chmod +x /usr/local/bin/storageos
exit
We recommend that you create a bash alias for the docker run command:
alias storageos=='docker run --rm -e STORAGEOS_HOST -e STORAGEOS_USERNAME -e STORAGEOS_PASSWORD storageos/cli'
Run storageos
to get usage information.
Checkout go-cli
into your GOPATH
. Consult https://github.com/golang/go/wiki/GOPATH if you are unfamiliar with how
GOPATH
's work. If GOPATH
is not set, it defaults to $HOME/go
.
go get -d github.com/storageos/go-cli/...
cd $GOPATH/src/github.com/storageos/go-cli
make install
The binary will be in $GOPATH/bin/storageos
cd $GOPATH/src/github.com/storageos/go-cli
make build
The binary will be in cmd/storageos/storageos
cd $GOPATH/src/github.com/storageos/go-cli
make release
Release binaries for Linux, Mac and Windows will be in cmd/storageos/release