New in .NET 10.0 [21]: Outputting commands and parameters in JSON for SDK tools
The .NET SDK commands now provide help information in JSON format via a new parameter.
(Image: Pincasso / Shutterstock.com)
1 min. read
By
- Dr. Holger Schwichtenberg
With the new parameter --cli-schema, developers have been able to get an output of command options and parameters in JavaScript Object Notation (JSON) for .NET SDK command-line commands since .NET 10.0.
Previously, this information was already available in plain text form via the help function, but required multiple individual commands, such as
dotnet package -h
dotnet package add -h
dotnet package list -h
The screenshot shows a section of the JSON schema output of a .NET SDK CLI command (Fig. 1).
Videos by heise
The screenshot shows a section of the help information of a .NET SDK CLI command (Fig. 2).
(mki)