Ynex – Vue3 Premium Bootstrap-5 Admin Template

Creating a Pages

You can generate new pages in Vue.js using the Vue generate command


# Generates `pages/about.vue`
npx nuxi add page about

# Generates `pages/category/[id].vue`
npx nuxi add page "category/[id]"
										
Creating a Component

To create components using the Vue.js CLI (Command Line Interface), you can use the generate command. Here's how you can create components:


Creating a component using the Vue CLI

To create a component using the CLI:

npx nuxi add component YourComponentName
By default, this command creates the following:
  • YourComponentName.vue
Where <YourComponentName> is the name of your component.

Creating a Custom Commands

In Vue.js 3, you can generate custom commands using the @Vue/cli package. For example, to generate a custom command:

npx Vue create command my-custom-command