rapicgen 1.5.44

dotnet tool install --global rapicgen --version 1.5.44
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local rapicgen --version 1.5.44
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=rapicgen&version=1.5.44
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package rapicgen --version 1.5.44
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Cross Platform Command Line Tool

All custom tools mentioned above are also implemented in a cross platform command line application

Requirements
  • .NET Core 2.1 runtime
  • Java Runtime Environment
  • NPM

Installation

The tool can be installed as a .NET Core global tool that you can call from the shell / command line

dotnet tool install --global rapicgen

or by following the instructions here to install a specific version of tool

Usage

Since the tool is published as a .NET Core Tool, it can be launched from anywhere using any command line interface by calling rapicgen. The help information is displayed when not specifying any arguments to rapicgen

Usage: run [options] [command]

Options:
  -v|--verbose  Show verbose output
  -?|-h|--help  Show help information

Commands:
  autorest      Generate Swagger / Open API client using AutoRest
  nswag         Generate Swagger / Open API client using NSwag
  openapi       Generate Swagger / Open API client using OpenAPI Generator
  swagger       Generate Swagger / Open API client using Swagger Codegen CLI

Run 'run [command] --help' for more information about a command.

Some help information is also provided per command and can be launched by

$ rapicgen [command name] -?

For example:

$ rapicgen autorest -?

will output this:

Generate Swagger / Open API client using AutoRest

Usage: run autorest [options] <swaggerFile> <namespace> <outputFile>

Arguments:
  swaggerFile   Path to the Swagger / Open API specification file
  namespace     Default namespace to in the generated code
  outputFile    Output filename to write the generated code to. Default is the swaggerFile .cs

Options:
  -?|-h|--help  Show help information

Usage Examples:

Let's say we have a OpenAPI Specifications document called Swagger.json

For starters, we can use the Swagger Petstore spec. Here's an example powershell script for downloading it

Invoke-WebRequest -Uri https://petstore.swagger.io/v2/swagger.json -OutFile Swagger.json

In case you don't have the CLI tool installed you can install it by

dotnet tool install --global rapicgen

Here's an example of how to generate code using AutoRest

$ rapicgen autorest Swagger.json GeneratedCode ./AutoRestOutput.cs

Here's an example of how to generate code using NSwag

$ rapicgen nswag Swagger.json GeneratedCode ./NSwagOutput.cs

Here's an example of how to generate code using Swagger Codegen CLI

$ rapicgen swagger Swagger.json GeneratedCode ./SwaggerOutput.cs

And last but but not the least, here's an example of how to generate code using OpenAPI Generator

$ rapicgen openapi Swagger.json GeneratedCode ./OpenApiOutput.cs
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.5.44 0 1/23/2022
1.4.43 0 1/23/2022
1.4.42 0 1/22/2022
1.4.41 2,692 12/26/2021
1.4.40 42 12/26/2021
1.4.39 886 12/18/2021
1.4.38 967 12/11/2021
1.4.37 780 12/4/2021
1.4.36 471 11/30/2021
1.4.35 629 11/27/2021
1.4.34 1,555 11/21/2021
1.4.33 1,340 11/16/2021
1.4.32 97 11/15/2021
1.4.31 82 11/15/2021
1.4.30 4,816 10/22/2021
1.4.10 3,524 10/2/2021
1.4.9 256 10/2/2021
1.4.8 268 10/2/2021
1.4.7 271 10/2/2021
1.4.6 277 10/2/2021
1.4.5 276 10/2/2021
1.3.7741 6,093 8/29/2021
1.3.7613 3,102 8/16/2021
1.2.7536 1,838 8/7/2021
1.2.7037 12,586 6/12/2021
1.2.6859 5,329 5/21/2021
1.2.6685 4,606 5/1/2021
1.2.6442 4,397 4/13/2021
1.2.6432 469 4/12/2021
1.2.6359 2,351 4/5/2021
1.2.6274 1,237 4/1/2021
1.2.6222 1,052 3/28/2021
1.2.6213 708 3/26/2021
1.2.6153 1,682 3/20/2021
1.2.6142 560 3/19/2021
1.2.5901 5,111 3/1/2021
1.1.4934 1,593 1/10/2021
1.1.4697 515 12/26/2020
1.1.4559 389 12/16/2020
1.1.4470 285 12/12/2020
1.1.4142 473 12/3/2020
1.1.3189 842 11/11/2020
1.1.3147 260 11/7/2020
1.1.3012 408 10/31/2020
1.1.2795 297 10/22/2020
1.1.2631 265 10/13/2020
1.1.2531 269 9/27/2020
1.1.2400 294 9/2/2020
1.1.2394 231 9/1/2020
1.1.2301 232 8/18/2020
1.1.2039 265 6/15/2020
1.1.2007 273 6/3/2020
1.1.1943 265 5/21/2020
1.1.1895 292 5/11/2020
1.1.1852 276 5/4/2020
1.1.1823 264 4/26/2020
1.1.1784 266 4/21/2020
1.1.1715 295 4/6/2020
1.1.1682 318 3/29/2020
1.1.1586 315 3/22/2020
1.1.1549 366 3/16/2020
1.1.1318 353 3/3/2020
1.1.1152 297 2/17/2020
1.1.1067 421 2/10/2020
1.1.1003 279 2/7/2020
1.1.788 380 1/17/2020
1.1.778 483 1/4/2020
1.1.775 503 12/19/2019
1.1.753 291 12/2/2019
1.1.742 292 11/24/2019
1.1.741 279 11/21/2019
1.1.740 290 11/21/2019
1.1.738 283 11/21/2019
1.1.737 285 11/21/2019
1.0.0 277 11/21/2019