7

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?

the_prole
  • 6,481
  • 11
  • 56
  • 120

4 Answers4

19

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

shoan
  • 1,143
  • 14
  • 21
8

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.

chenrui
  • 4,410
  • 1
  • 21
  • 34
0

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

the_prole
  • 6,481
  • 11
  • 56
  • 120
  • When you login, you need to provide concourse url as well. So the command should be fly -t main login --concourse-url your_concourse_url – shoan Feb 13 '19 at 15:05
0

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.

danekan
  • 343
  • 3
  • 5