13

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
  • 8,275
  • 16
  • 78
  • 163

7 Answers7

29

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,303
  • 15
  • 22
14

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
  • 8,910
  • 3
  • 33
  • 43
  • brew install --cask fly – Jay May 23 '21 at 18:55
  • 5
    after downloading, It shows - “fly” cannot be opened because the developer cannot be verified. – surajmall Oct 27 '21 at 11:00
  • 1
    In terminal, type `where fly` - it'll probably be something like `/opt/homebrew/bin/fly` - cd into `/opt/homebrew/bin` and type `open .` - double click the fly file and accept. You should be able to use fly cli now. – Lewis Peel Feb 24 '23 at 12:52
4

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
  • 462
  • 4
  • 7
1

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

Wojciech Bednarski
  • 6,033
  • 9
  • 49
  • 73
1

On Apple Silicon (Mac Studio M1 Max) this worked for me.

1. Install with Homebrew

This will install it as cask, even though it should not be; you can see it under fly -> /opt/homebrew/Caskroom/fly/7.9.1/fly

brew install fly

2. Navigate to symlink in Finder In my case I ran:

cd /opt/homebrew/bin
open .

3. Find fly link Then Right-click and hit Open in the warning dialog. Terminal will briefly flash. You should see the synopsis for running fly and "Exited" at the end. Close that terminal window.

4. Verify

Just run:

fly -version 

In my case the output was 7.9.1

George Smith
  • 438
  • 4
  • 8
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
  • 8,275
  • 16
  • 78
  • 163
  • 1
    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

easiest way is to run first command curl 'http://localhost:8080/api/v1/cli?arch=amd64&platform=darwin' -o fly \ && chmod +x ./fly which will create a fly binary and for the second part of command just do it manually && mv ./fly /usr/local/bin/ meaning you need to copy fly binary into /usr/local/bin

RulerNature
  • 693
  • 4
  • 13
  • 40