openwhisk-cli icon indicating copy to clipboard operation
openwhisk-cli copied to clipboard

add an installer script and update readme to use it

Open rabbah opened this issue 7 years ago • 2 comments

the cli should be installed from the command line, something like

$ curl -sSL https://openwhisk-cli-repo/cli | sh

rabbah avatar Feb 17 '18 13:02 rabbah

I like it

Also we also should do the homebrew with tap

csantanapr avatar Feb 17 '18 13:02 csantanapr

I have seing script were they install the binary some were in users $HOME and then ask user to add or auto add to bashrc

This way the user doesn’t have to use sudo, or the user doesn’t have the ability to run sudo.

Was thinking on what nvm does, but in our case there is no repo to clone just the CLI

This is from their readme:

Installation

Install script

To install or update nvm, you can use the [install script][2] using cURL:

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash

or Wget:

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash

The script clones the nvm repository to ~/.nvm and adds the source line to your profile (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc).

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
`

csantanapr avatar Feb 17 '18 13:02 csantanapr