Question: Suddenly, from one command to the next, the Heroic CLI stopped working. No matter what I type into the command line, I get the same error. See below.

```
$heroku help
 ▸    commands is not a heroku command.
 ▸    Perhaps you meant domains
 ▸    Run heroku help for a list of available commands.
 !    error getting commands pid 24643 exit 127

```

What the heck is going on?

Answer: 
this problem just happened with me after the last update of heroku CLI,
heroku CLI check if there is updates after execute any command related with and when run updates the problem occurs because is not working with root permissions.

to fix this you need to reinstall heroku CLI 

```
sudo apt-get remove heroku
sudo add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./"
curl -fL https://cli-assets.heroku.com/apt/release.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install heroku

```

and you probably need to add this path 

```
PATH=$PATH:~/usr/bin
export PATH

```
This just happened to me. I fixed it by removing the heroku app the same way i installed it. I had the gem installed, so i uninstalled that.

`gem uninstall heroku`

Then i used homebrew to reinstall it.

`brew install heroku`

and it worked.