You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! Sometimes we faced with a situation that we should create alias for subcommands. For example, pnpm i and pnpm install. The subcommand named i and subcommand named install is the same command.
The solution now is to create two subcommands with same value, like:
Shouldn't it just keep the standard of the | separator like in the usage display? npx nuxt -> USAGE nuxi [OPTIONS] [COMMAND] add|add-template|analyze|build|cleanup|_dev|dev|devtools|generate|info|init|module|prepare|preview|start|test|typecheck|upgrade|complete
Meaning the alias shown under commands like:
install|i Install packages
As an example with nuxt cli
add|a Add Nuxt modules
dev|d Run Nuxt development server
test|t Run tests
Perhaps with either differently colored separator, or spacing to differentiate between the commands.
Activity
feat(subcommand): support alias for subcommand (unjs#152)
zuixinwang commentedon Jul 15, 2024
it's a good idea, but the help output should also be considered
naruko-hstk commentedon Jan 21, 2026
maybe let help output like this?
ratiofu commentedon Feb 7, 2026
Or perhaps
feat: support alias for command names (unjs#152)
BlueBazze commentedon Feb 24, 2026
Shouldn't it just keep the standard of the
|separator like in the usage display?npx nuxt->USAGE nuxi [OPTIONS] [COMMAND] add|add-template|analyze|build|cleanup|_dev|dev|devtools|generate|info|init|module|prepare|preview|start|test|typecheck|upgrade|completeMeaning the alias shown under commands like:
install|i Install packagesAs an example with nuxt cli
Perhaps with either differently colored separator, or spacing to differentiate between the commands.
feat(command): support subcommand aliases
feat: support subcommand aliases (#236)