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 updatebrew install gobrew install git(Go needs git for thego getcommand)brew install hg(Go needs mercurial for thego getcommand)
Clone and set up the repository:
go get -d github.com/cloudfoundry/bosh-clicd $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# Theboshbinary will be located inout/