vue cli to create vue 2 code example Example: How to create a vue cli app Use npx @vue/cli create myapp