check current version of vue cli code example
Example 1: install vue cli
npm install -g @vue/cli
//to see the version installed
vue --version
Example 2: install vue cli 3
installing vue cli commands
npm install --global vue-cli is now
npm install -g @vue/cli