How to install Fly CLI to mac

Viewed 15502

I download the latest version of the Fly cli

https://concourse-ci.org/download.html

to ~/Downloads then cd to ~/Downloads

cd ~/Downloads
mv fly_darwin_amd64 fly
install fly

then I do

fly

and i get

-bash: fly: command not found

Is one of my steps wrong?

5 Answers

Try

cd ~/Downloads mv fly_darwin_amd64 /usr/local/bin/fly chmod 0700 /usr/local/bin/fly (Thanks to @Andrew Ramnikov) For the newest mac os version, you need to allow the App to run from System Settings->Security and Privacy->General-> Allow app fly -version

On MacOS, you can install with brew like, brew install --cask fly.

You might also want to install CredHub to manage credentials, brew install cloudfoundry/tap/credhub-cli.

Note that in the accepted answer, in Catalina and Newer the equivalent to the last step to allow the app in privacy settings is: xattr -d com.apple.quarantine /usr/local/bin/fly And this does not require admin rights, but doing it via the GUI does.

I ended up moving the fly binary to a folder in my home directory, and just added it to my path variable in ~/.bash_profile so I guess it works now.

edit

However, when I do

fly -t main login

I get

error: unknown target: main

Go to System Preferences -> Security & Privacy -> General and click allow anyway next the the fly app.

Related