Scalingo/cli

login from terminal issue

nicoloadamo opened this issue · 2 comments

hi everyone, today I tried to follow the commands on the documentation to install scalingo from terminal but I get this error>

➜  rails-watch-list git:(master) curl -O https://cli-dl.scalingo.com/install && bash install
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4164    0  4164    0     0  32956      0 --:--:-- --:--:-- --:--:-- 34131
-----> Downloading Scalingo client...  DONE
-----> Extracting...   DONE
-----> Install Scalingo client to /usr/local/bin
       sudo required...
       /usr/local/bin does not exist, creating...
mkdir: /usr/local/bin: Permission denied
Password:
Sorry, try again.
Password:
mv: rename /tmp/scalingo_cli_q5Q/scalingo_1.27.2_darwin_arm64/scalingo to /usr/local/bin/scalingo: No such file or directory
 !     Fail to install Scalingo client (return 1)

then I tryed to rerun the commands but still the same error, this time without askin for credentials:

➜  rails-watch-list git:(master) ✗ curl -O https://cli-dl.scalingo.com/install && bash install
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4164    0  4164    0     0  44662      0 --:--:-- --:--:-- --:--:-- 46786
-----> Downloading Scalingo client...  DONE
-----> Extracting...   DONE
-----> Install Scalingo client to /usr/local/bin
       sudo required...
       /usr/local/bin does not exist, creating...
mkdir: /usr/local/bin: Permission denied
mv: rename /tmp/scalingo_cli_BEo/scalingo_1.27.2_darwin_arm64/scalingo to /usr/local/bin/scalingo: No such file or directory
 !     Fail to install Scalingo client (return 1)
➜  rails-watch-list git:(master) ✗

anyone have Idea on what's going on?

Maybe you could try to use the --install-dir option to the install script execution to change the directory of installation of the CLI? It seems that something is not working with /usr/local/bin on your OS.