Note: This guide assumes a few things:
- You have gcc (or an equivalent)
- You can install packages (brew, apt-get, or equivalent)
Get Golang and its dependencies (Mac example, replace with your package manager of choice):
brew update
brew install go
brew install git
(Go needs git for thego get
command)brew install hg
(Go needs mercurial for thego get
command)
Clone and set up the repository:
go get -d github.com/cloudfoundry/bosh-cli
cd $GOPATH/src/github.com/cloudfoundry/bosh-cli
From here on out we assume you're working in $GOPATH/src/github.com/cloudfoundry/bosh-cli
To build the bosh CLI:
bin/build
# Thebosh
binary will be located inout/