Skip to content

Hide legacy aliases by default and add --all-aliases to nvm ls #3879

Description

@jiangzm

Problem

nvm ls currently displays all built-in aliases, including iojs and historical LTS aliases that have long been EOL.

Most of these aliases resolve to N/A, making the output unnecessarily verbose for users who simply want to inspect installed Node.js versions and active aliases.

As more LTS releases are added over time, the output continues to grow.

Proposal

Add a --all-aliases option to nvm ls.

By default, nvm ls would display only relevant aliases, such as:

  • default
  • node
  • stable
  • unstable
  • lts/* that resolve to an installed or currently supported release

When --all-aliases is specified, nvm ls would display the complete list of built-in aliases, including historical LTS aliases and iojs.

Benefits

  • Cleaner and more readable default output.
  • Historical aliases remain available for users who need them.
  • Better scalability as additional LTS releases are added.
  • Preserves existing functionality through an explicit opt-in option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions