diff --git a/src/commands/module/add.ts b/src/commands/module/add.ts index 4143c4fb..6a711b51 100644 --- a/src/commands/module/add.ts +++ b/src/commands/module/add.ts @@ -16,8 +16,8 @@ import { colors } from 'consola/utils' export default defineCommand({ meta: { - name: 'module', - description: 'Manage Nuxt Modules', + name: 'add', + description: 'Add Nuxt modules', }, args: { ...sharedArgs, diff --git a/src/commands/module/index.ts b/src/commands/module/index.ts index 27a066d4..bea51f33 100644 --- a/src/commands/module/index.ts +++ b/src/commands/module/index.ts @@ -3,7 +3,7 @@ import { defineCommand } from 'citty' export default defineCommand({ meta: { name: 'module', - description: 'Manage Nuxt Modules', + description: 'Manage Nuxt modules', }, args: {}, subCommands: { diff --git a/src/commands/module/search.ts b/src/commands/module/search.ts index 4811239a..3a472748 100644 --- a/src/commands/module/search.ts +++ b/src/commands/module/search.ts @@ -8,7 +8,7 @@ import { bold, green, magenta, cyan, gray } from 'colorette' export default defineCommand({ meta: { - name: 'add', + name: 'search', description: 'Search in Nuxt modules', }, args: { @@ -59,7 +59,7 @@ async function findModuleByKeywords(query: string, nuxtVersion: string) { repository: gray(result.item.github), description: gray(result.item.description), package: gray(result.item.npm), - install: cyan(`nuxt module add ${result.item.npm}`), + install: cyan(`npx nuxi module add ${result.item.npm}`), } if (result.item.github === result.item.website) { delete res.homepage