The new Codefresh CLI tool.
# tap Codefresh homebrew repo
brew tap codefresh-io/cli
# install cf2 CLI
brew install cf2
# check the installation
cf version
# get the latest version or change to a specific version
VERSION=$(curl --silent "https://api.github.com/repos/codefresh-io/cli-v2/releases/latest" | jq -r ".tag_name")
# download and extract the binary
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/$VERSION/cf-darwin-amd64.tar.gz | tar zx
# move the binary to your $PATH
mv ./cf-* /usr/local/bin/cf
# check the installation
cf version
# get the latest version or change to a specific version
VERSION=$(curl --silent "https://api.github.com/repos/codefresh-io/cli-v2/releases/latest" | jq -r ".tag_name")
# download and extract the binary
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/$VERSION/cf-linux-amd64.tar.gz | tar zx
# move the binary to your $PATH
mv ./cf-* /usr/local/bin/cf
# check the installation
cf version