What is -o in this DotNet CLI command 'dotnet new webapi -o RESTfulAPIName'? DotNet Core SDK version is 6.0.403, it may be silly but still I want to know, couldn't found it anywhere even not on MSDN.
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 online.
CodePudding user response:
Is this what you are looking for?
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-new
According to this the -o means:
[-o|--output <OUTPUT_DIRECTORY>] [--project <PROJECT_PATH>]