Search code examples
heroku-cli

Install Heroku CLI on Mac with Bash Termimal


I'm trying to follow this guide and install Heroku CLI on my Mac. https://devcenter.heroku.com/articles/heroku-cli#download-and-install

When I typed

brew tap heroku/brew && brew install heroku

The terminal returns

bash: brew: command not found

What should I do here?


Solution

  • are u already install brew on your system? if not try read this :

    https://brew.sh/

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)
    

    paste that in a macOS Terminal or Linux shell prompt.

    after install brew, try again install heroku cli

    https://devcenter.heroku.com/articles/heroku-cli