Skip to content

Add dotnetup sdk list and dotnetup runtime list commands #52790

Description

@nagilson

Summary

As discussed in #52717 (comment), we should add component-specific list commands to dotnetup.

Current State

Currently, dotnetup list shows all installed components (SDKs, runtimes, ASP.NET, Windows Desktop).

Proposed Commands

  • dotnetup sdk list - List only installed SDKs
  • dotnetup runtime list - List only installed runtimes
  • Potentially: dotnetup aspnetcore list, dotnetup windowsdesktop list

Architecture Considerations

Per @baronfel's feedback:

Having a top-level list is great, but logically it should be similar to calling dotnetup <componenttype> list, and we should be prepared code-architecture-wise to support listing SDKs and Runtimes (and maybe more types of components in the future).

The implementation should:

  1. Keep dotnetup list as the top-level command that lists all components
  2. Add dotnetup sdk list as equivalent to filtering dotnetup list to SDKs only
  3. Add dotnetup runtime list for runtimes only
  4. Support future component types

Notes

This is intentionally different from dotnet --list-sdks and dotnet --list-runtimes syntax, as those are "among my least favorite parts of our current CLI experience" (@baronfel).

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-dotnetupWork items around the proposed `dotnetup` bootstrapper/toolchain management tool and library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions