Home > Software engineering >  What does the -o flag mean in the .NET Core 6 CLI command?
What does the -o flag mean in the .NET Core 6 CLI command?

Time:11-22

What is the -o flag in this .NET CLI command: dotnet new webapi -o RESTfulAPIName?

My .Net Core SDK version is 6.0.403.

CodePudding user response:

It's the Output flag. It's used to change the location of the scaffolded files to another directory name. By default, the code is placed in ./<ProjectName>/.

You can see the documentation for this flag by running dotnet new --help or Screenshot of a terminal, first with the "-o" flag specified and then without it specified.

CodePudding user response:

All these answers are very helpful and below is the best answer I found by @gunr2171

It's the Output flag. It's used to change the location of the scaffolded files to another directory name. By default, the code is placed in .//. You can see the documentation for this flag by running dotnet new --help or online.

  • Related