After installing @vue/cli
via yarn
yarn global add @vue/cli
vue
No command 'vue' found, did you mean:
...
Get yarn global bin directory
yarn global bin
/home/[USERNAME]/.yarn/bin
Add yarn bin path to bash profile.
nano ~/.bashrc
Add the following line
export PATH="$HOME/.yarn/bin:$PATH"
Reload bash profile
source ~/.bashrc
Run vue again
vue