4

Instruction page says as:-

  1. Install the Confluent Cloud CLI Run this command to install the Confluent Cloud CLI. curl -L --http1.1 https://cnfl.io/ccloud-cli | sh -s -- -b /usr/local/bin

it failed for permission

"install: cannot create regular file '/usr/local/bin/ccloud': Permission denied"

Even if I tried

sudo curl -L --http1.1 https://cnfl.io/ccloud-cli | sh -s -- -b /usr/local/bin 

Same error. How do I install it?

Robin Moffatt
  • 30,382
  • 3
  • 65
  • 92
masiboo
  • 4,537
  • 9
  • 75
  • 136

1 Answers1

10

Well, I installed it as:-

curl -L --http1.1 https://cnfl.io/ccloud-cli | sh -s -- -b ~/Downloads/

After the above command

sudo mv  ~/Downloads/ccloud /usr/local/bin/

Everything is fine now.

masiboo
  • 4,537
  • 9
  • 75
  • 136
  • 5
    If you want this as a one-liner, the `sudo` has to go in front of the `sh`, not in front of the `curl` -- that is the issue with what the OP tried. – davewy Sep 03 '21 at 23:16