How to create an app with vue CLI without a global installation

If you check out the official doc the process of generating new app has 2 steps:

# install globaly
npm install -g @vue/cli
# create app
vue create my-project

If you use vue cli only form time to time global installation doesn't make much sense - you probably will upgrade npm before running the vue command again. In this case, you can generate your code with:

$ npx -p @vue/cli vue create my-project

Example run: asciicast


In this article, we have seen how to run vue cli without a global installation & adding vue executable to our system.