I guess vue-cli doesn't have component creator command yet. You can use vue-generate-component
Answer from Amin Rashidbeigi on Stack OverflowVue.js
vuejs.org › guide › essentials › component-basics
Components Basics | Vue.js
Components allow us to split the UI into independent and reusable pieces, and think about each piece in isolation. It's common for an app to be organized into a tree of nested components: This is very similar to how we nest native HTML elements, but Vue implements its own component model that allows us to encapsulate custom content and logic in each component.
MDN Web Docs
developer.mozilla.org › en-US › docs › Learn_web_development › Core › Frameworks_libraries › Vue_first_component
Creating our first Vue component - Learn web development | MDN
Now it's time to dive deeper into Vue, and create our own custom component — we'll start by creating a component to represent each item in the todo list. Along the way, we'll learn about a few important concepts such as calling components inside other components, passing data to them via props, and saving data state.
Videos
Top answer 1 of 2
27
I guess vue-cli doesn't have component creator command yet. You can use vue-generate-component
2 of 2
4
I'm a little late to the party, but I created a CLI called Seabird that will do this.
It will generate a component or view from an internal ejs file, or you can specify your own template and data object, and Seabird will compile it for you.
npm
npmjs.com › package › vue-generate-component
vue-generate-component - npm
September 4, 2020 - Vue js component generator. Latest version: 3.0.1, last published: 6 years ago. Start using vue-generate-component in your project by running `npm i vue-generate-component`. There are 0 other projects in the npm registry using vue-generate-component.
» npm install vue-generate-component
Published Apr 09, 2020
Version 3.0.1
Author Netanel Basal
GitHub
github.com › NetanelBasal › vue-generate-component
GitHub - NetanelBasal/vue-generate-component: Vue js component generator
October 8, 2021 - <template lang="html"> <section class="home"> <h1>home Component</h1> </section> </template> <script lang="js"> export default { name: 'home', props: [], mounted() { }, data() { return { } }, methods: { }, computed: { } } </script> <style scoped lang="scss"> .home { } </style> ... import Vue from 'vue'; Vue.directive('my-directive', { bind() {}, // When the bound element is inserted into the DOM...
Starred by 223 users
Forked by 77 users
Languages JavaScript 89.5% | Vue 10.5% | JavaScript 89.5% | Vue 10.5%
Changjoo-park
changjoo-park.github.io › vue-component-generator
Vue Component Generator
We cannot provide a description for this page right now
GitHub
github.com › tomosterlund › generate-vue-component
GitHub - tomosterlund/generate-vue-component: CLI tool for generating Vue-components. Written in Node.
Starred by 4 users
Forked by 2 users
Languages JavaScript 100.0% | JavaScript 100.0%
npm
npmjs.com › package › @calidae › vue-generate-component
@calidae/vue-generate-component - npm
Vue js component generator. Latest version: 1.2.0, last published: 5 years ago. Start using @calidae/vue-generate-component in your project by running `npm i @calidae/vue-generate-component`. There are no other projects in the npm registry using @calidae/vue-generate-component.
» npm install @calidae/vue-generate-component
Published Sep 30, 2020
Version 1.2.0
Author Calidae
W3Schools
w3schools.com › vue › vue_components.php
Vue Components
Components in Vue is a very powerful tool because it lets our web page become more scalable and bigger projects become easier to handle. Let's make a component and add it to our project.
npm
npmjs.com › package › st-vue-generate-component
st-vue-generate-component - npm
Vue js component generator. Latest version: 2.0.0, last published: 3 years ago. Start using st-vue-generate-component in your project by running `npm i st-vue-generate-component`. There are no other projects in the npm registry using st-vue-generate-component.
» npm install st-vue-generate-component
Frontstuff
frontstuff.io › build-your-first-vue-js-component
Build Your First Vue.js Component | frontstuff
Yet, we want to go deeper and learn how to build an actual component that you could use in a real project. For those reasons, we’ll go with an actual real-life setup, powered by Webpack. To keep things simple and reduce configuration time, we’ll use vue-cli and the webpack-simple Vue.js template. First, you need to install vue-cli globally. Fire up your terminal and type the following: ... You can now generate ready-to-use Vue.js boilerplates in a few keystrokes.
Stack Overflow
stackoverflow.com › questions › 59870092 › how-to-generate-vue-components-from-javascript
vue.js - How to generate Vue components from Javascript - Stack Overflow
Also you can use v-bind:is like this example jsfiddle.net/chrisvfritz/o3nycadu from vue docs "dynamic components"