vuejs how to create component by cli code example Example: generate component vue cli npm install -g vue-generate-component