Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Heroku cli on archlinux using snapd :command not found

I have installed heroku cli following their ref https://devcenter.heroku.com/articles/heroku-cli

using snapd on Manjaro arch-based linux distro

It was installed successfully and just to make sure

When I run this cmd

sudo snap install heroku

I get

snap "heroku" is already installed, see "snap refresh --help"

but when I try to verify the CLI installation using this cmd

heroku --version

I get

bash: heroku: command not found
like image 929
aldokkani Avatar asked Jul 10 '17 14:07

aldokkani


2 Answers

It generally means that the directory in which you have installed your package is not included in your $PATH.

Look at the output of

echo $PATH

and export the path of the directory containing heroku's executable if it's not already included.

Read more about exporting paths here.

You might want to source your .bashrc file (or .zshrc if you are on ZSH) after exporting.

To check if the export is successful, you can type in which herokuand confirm the same.

Cheers!

like image 116
anilkumarggk Avatar answered Oct 17 '22 13:10

anilkumarggk


You can run like this:

    snap run heroku

Examples:

    snap run heroku --version
    snap run heroku login -i
like image 24
Jorge Sanabria Avatar answered Oct 17 '22 13:10

Jorge Sanabria