kalit
kalit

Reputation: 266

Show available template parameters when running dotnet new

I want to see all available template parameters when I run command dotnet new MyTemplate.

How can I do it? I know when I miss some required param then I see it

Upvotes: 2

Views: 1441

Answers (2)

gunr2171
gunr2171

Reputation: 17579

Add --help to the end.

dotnet new MyTemplate --help

This shows the specific help information for that template. --help can be used on other levels of dotnet commands.

Upvotes: 4

NotFound
NotFound

Reputation: 6192

You can do -l or --list to see all available templates:

dotnet new -l

In general if you want to know the available options for a command you can call the help:

dotnet new -h

Upvotes: 0

Related Questions