Rapicgen 1.11.0
See the version list below for details.
dotnet tool install --global Rapicgen --version 1.11.0
dotnet new tool-manifest
dotnet tool install --local Rapicgen --version 1.11.0
#tool dotnet:?package=Rapicgen&version=1.11.0
nuke :add-package Rapicgen --version 1.11.0
Cross Platform Command Line Tool
All custom tools mentioned above are also implemented in a cross platform command line application
Requirements
- .NET 6.0 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: rapicgen [command] [options]
Options:
-v|--verbose Show verbose output
-?|-h|--help Show help information.
Commands:
csharp Generate C# API clients
jmeter Generate Apache JMeter test plans
openapi-generator Generate code using OpenAPI Generator (v7.8.0).
See supported generators at https://openapi-generator.tech/docs/generators/
typescript Generate TypeScript API clients
Run 'rapicgen [command] -?|-h|--help' for more information about a command.
Some help information is also provided per command and can be launched by
rapicgen [command name] -?
or
rapicgen [command name] [sub command name] -?
For example:
rapicgen csharp -?
will output this:
Generate C# API clients
Usage: rapicgen csharp [command] [options]
Options:
-?|-h|--help Show help information.
Commands:
autorest AutoRest (v3.0.0-beta.20210504.2)
kiota Microsoft Kiota (v1.18.0)
nswag NSwag (v14.1.0)
openapi OpenAPI Generator (v7.8.0)
refitter Refitter (v1.2.0)
swagger Swagger Codegen CLI (v3.0.34)
Run 'csharp [command] -?|-h|--help' for more information about a command.
and
rapicgen csharp 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
or
rapicgen typescript -?
will output this:
Generate TypeScript API client
Usage: rapicgen typescript [options] <generator> <swaggerFile> <outputPath>
Arguments:
generator The tech stack to use for the generated client library
Allowed values are: Angular, Aurelia, Axios, Fetch, Inversify, JQuery, NestJS, Node, ReduxQuery,
Rxjs.
Default value is: Angular.
swaggerFile Path to the Swagger / Open API specification file
outputPath Output folder to write the generated code to
Default value is: typescript-generated-code.
Options:
-nl|--no-logging Disables Analytics and Error Reporting
-?|-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/v3/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 csharp autorest Swagger.json GeneratedCode ./AutoRestOutput.cs
Here's an example of how to generate code using Kiota
rapicgen csharp kiota Swagger.json GeneratedCode ./OpenApiOutput.cs
Here's an example of how to generate code using NSwag
rapicgen csharp nswag Swagger.json GeneratedCode ./NSwagOutput.cs
Here's an example of how to generate code using Swagger Codegen CLI
rapicgen csharp swagger Swagger.json GeneratedCode ./SwaggerOutput.cs
Here's an example of how to generate code using OpenAPI Generator
rapicgen csharp openapi Swagger.json GeneratedCode ./OpenApiOutput.cs
Here's an example of how to generate code JMeter test plans
rapicgen jmeter Swagger.json
Here's an example of how to generate code for TypeScript
rapicgen typescript Angular Swagger.json
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.35.0 | 3,504 | 10/30/2025 |
| 1.34.0 | 2,066 | 10/13/2025 |
| 1.33.0 | 177 | 10/13/2025 |
| 1.32.0 | 3,070 | 9/18/2025 |
| 1.31.0 | 1,300 | 9/8/2025 |
| 1.30.0 | 5,231 | 7/14/2025 |
| 1.29.0 | 65,373 | 6/26/2025 |
| 1.28.0 | 1,173 | 6/23/2025 |
| 1.27.0 | 934 | 6/19/2025 |
| 1.26.0 | 6,857 | 5/24/2025 |
| 1.25.0 | 2,336 | 5/16/2025 |
| 1.24.0 | 2,801 | 5/7/2025 |
| 1.23.0 | 544 | 5/6/2025 |
| 1.22.0 | 9,154 | 4/8/2025 |
| 1.21.0 | 72,633 | 3/13/2025 |
| 1.20.0 | 153,416 | 3/3/2025 |
| 1.19.0 | 585,632 | 1/25/2025 |
| 1.18.0 | 3,344 | 1/10/2025 |
| 1.17.0 | 6,848 | 12/6/2024 |
| 1.16.0 | 6,301 | 11/8/2024 |
| 1.15.0 | 5,683 | 10/13/2024 |
| 1.14.0 | 1,569 | 10/7/2024 |
| 1.11.0 | 6,924 | 9/6/2024 |
| 1.10.9 | 292,439 | 8/19/2024 |
| 1.10.8 | 123,808 | 8/12/2024 |
| 1.10.7 | 364,702 | 7/19/2024 |
| 1.10.6 | 201,056 | 7/7/2024 |
| 1.10.5 | 71,537 | 7/2/2024 |
| 1.10.4 | 89,959 | 6/25/2024 |
| 1.10.3 | 148,765 | 6/7/2024 |
| 1.10.2 | 90,859 | 5/27/2024 |
| 1.10.1 | 159,262 | 5/7/2024 |
| 1.10.0 | 1,183 | 5/5/2024 |
| 1.9.8 | 12,574 | 3/11/2024 |
| 1.9.7 | 701 | 3/10/2024 |
| 1.9.6 | 23,192 | 2/8/2024 |
| 1.9.5 | 1,493 | 2/4/2024 |
| 1.9.4 | 60,528 | 1/13/2024 |
| 1.9.3 | 29,219 | 1/10/2024 |
| 1.9.2 | 65,964 | 12/24/2023 |
| 1.9.1 | 7,065 | 12/14/2023 |
| 1.9.0 | 7,982 | 12/10/2023 |
| 1.8.10 | 53,071 | 11/13/2023 |
| 1.8.9 | 1,658 | 11/10/2023 |
| 1.8.8 | 1,998 | 11/5/2023 |
| 1.8.7 | 8,266 | 10/6/2023 |
| 1.8.6 | 4,516 | 9/22/2023 |
| 1.8.5 | 3,993 | 9/11/2023 |
| 1.8.4 | 1,660 | 9/9/2023 |
| 1.8.3 | 2,477 | 9/4/2023 |
| 1.8.2 | 3,075 | 8/27/2023 |
| 1.8.1 | 5,558 | 8/9/2023 |
| 1.8.0 | 2,749 | 8/4/2023 |
| 1.7.18 | 5,919 | 7/16/2023 |
| 1.7.17 | 8,160 | 6/17/2023 |
| 1.7.16 | 2,664 | 6/11/2023 |
| 1.7.15 | 6,858 | 5/17/2023 |
| 1.7.14 | 2,477 | 5/12/2023 |
| 1.7.13 | 4,479 | 4/30/2023 |
| 1.7.12 | 3,744 | 4/19/2023 |
| 1.7.11 | 1,713 | 4/18/2023 |
| 1.7.10 | 1,430 | 4/18/2023 |
| 1.7.9 | 3,770 | 4/7/2023 |
| 1.7.8 | 2,564 | 4/2/2023 |
| 1.7.7 | 4,694 | 3/19/2023 |
| 1.7.6 | 1,511 | 3/19/2023 |
| 1.7.5 | 1,219 | 3/19/2023 |
| 1.7.4 | 2,459 | 3/15/2023 |
| 1.7.3 | 2,902 | 3/10/2023 |
| 1.7.2 | 2,095 | 3/7/2023 |
| 1.7.1 | 3,091 | 3/1/2023 |
| 1.7.0 | 2,042 | 2/27/2023 |
| 1.6.98 | 3,436 | 2/19/2023 |
| 1.6.97 | 3,174 | 2/14/2023 |
| 1.6.96 | 2,941 | 2/8/2023 |
| 1.6.95 | 1,823 | 2/7/2023 |
| 1.6.94 | 2,549 | 2/3/2023 |
| 1.6.93 | 1,863 | 2/2/2023 |
| 1.6.92 | 2,481 | 1/30/2023 |
| 1.6.91 | 2,370 | 1/27/2023 |
| 1.6.90 | 1,593 | 1/27/2023 |
| 1.6.89 | 3,486 | 1/22/2023 |
| 1.6.88 | 1,991 | 1/22/2023 |
| 1.6.86 | 6,172 | 1/5/2023 |
| 1.6.85 | 1,944 | 1/5/2023 |
| 1.6.80 | 3,858 | 12/29/2022 |
| 1.6.79 | 4,642 | 12/17/2022 |
| 1.6.78 | 6,554 | 11/28/2022 |
| 1.6.77 | 2,084 | 11/28/2022 |
| 1.6.76 | 2,133 | 11/28/2022 |
| 1.6.75 | 1,822 | 11/28/2022 |
| 1.6.74 | 1,710 | 11/28/2022 |
| 1.6.73 | 1,866 | 11/28/2022 |
| 1.5.72 | 6,992 | 11/2/2022 |
| 1.5.71 | 2,779 | 10/29/2022 |
| 1.5.70 | 3,166 | 10/22/2022 |
| 1.5.69 | 4,720 | 10/9/2022 |
| 1.5.68 | 2,150 | 10/9/2022 |
| 1.5.67 | 9,339 | 9/1/2022 |
| 1.5.66 | 2,366 | 8/29/2022 |
| 1.5.65 | 1,914 | 8/28/2022 |
| 1.5.64 | 2,596 | 8/24/2022 |
| 1.5.63 | 2,830 | 8/20/2022 |
| 1.5.62 | 2,417 | 8/18/2022 |
| 1.5.61 | 1,776 | 8/18/2022 |
| 1.5.60 | 3,493 | 8/12/2022 |
| 1.5.59 | 2,111 | 8/10/2022 |
| 1.5.58 | 2,004 | 8/10/2022 |
| 1.5.57 | 2,149 | 8/10/2022 |
| 1.5.56 | 1,787 | 8/10/2022 |
| 1.5.55 | 1,702 | 8/10/2022 |
| 1.5.54 | 1,899 | 8/10/2022 |
| 1.5.51 | 2,483 | 8/6/2022 |
| 1.5.50 | 6,943 | 7/5/2022 |
| 1.5.49 | 4,097 | 6/19/2022 |
| 1.5.48 | 4,129 | 6/7/2022 |
| 1.5.47 | 12,597 | 3/4/2022 |
| 1.5.46 | 4,005 | 2/17/2022 |
| 1.5.45 | 2,076 | 2/13/2022 |
| 1.5.44 | 4,231 | 1/23/2022 |
| 1.4.43 | 2,024 | 1/23/2022 |
| 1.4.42 | 1,927 | 1/22/2022 |
| 1.4.41 | 4,203 | 12/26/2021 |
| 1.4.40 | 1,866 | 12/26/2021 |
| 1.4.39 | 2,336 | 12/18/2021 |
| 1.4.38 | 2,745 | 12/11/2021 |
| 1.4.37 | 2,448 | 12/4/2021 |
| 1.4.36 | 2,043 | 11/30/2021 |
| 1.4.35 | 2,090 | 11/27/2021 |
| 1.4.34 | 2,940 | 11/21/2021 |
| 1.4.33 | 2,879 | 11/16/2021 |
| 1.4.32 | 1,935 | 11/15/2021 |
| 1.4.31 | 1,827 | 11/15/2021 |
| 1.4.30 | 6,517 | 10/22/2021 |
| 1.4.10 | 5,198 | 10/2/2021 |
| 1.4.9 | 2,176 | 10/2/2021 |
| 1.4.8 | 1,716 | 10/2/2021 |
| 1.4.7 | 1,849 | 10/2/2021 |
| 1.4.6 | 1,938 | 10/2/2021 |
| 1.4.5 | 1,780 | 10/2/2021 |
| 1.3.7741 | 7,758 | 8/29/2021 |
| 1.3.7613 | 4,748 | 8/16/2021 |
| 1.2.7536 | 3,509 | 8/7/2021 |
| 1.2.7037 | 14,255 | 6/12/2021 |
| 1.2.6859 | 6,948 | 5/21/2021 |
| 1.2.6685 | 6,342 | 5/1/2021 |
| 1.2.6442 | 6,124 | 4/13/2021 |
| 1.2.6432 | 1,998 | 4/12/2021 |
| 1.2.6359 | 3,812 | 4/5/2021 |
| 1.2.6274 | 2,915 | 4/1/2021 |
| 1.2.6222 | 2,485 | 3/28/2021 |
| 1.2.6213 | 2,420 | 3/26/2021 |
| 1.2.6153 | 3,313 | 3/20/2021 |
| 1.2.6142 | 2,273 | 3/19/2021 |
| 1.2.5901 | 6,963 | 3/1/2021 |
| 1.1.4934 | 3,148 | 1/10/2021 |
| 1.1.4697 | 2,314 | 12/26/2020 |
| 1.1.4559 | 1,991 | 12/16/2020 |
| 1.1.4470 | 1,863 | 12/12/2020 |
| 1.1.4142 | 2,364 | 12/3/2020 |
| 1.1.3189 | 2,913 | 11/11/2020 |
| 1.1.3147 | 2,198 | 11/7/2020 |
| 1.1.3012 | 2,443 | 10/31/2020 |
| 1.1.2795 | 1,908 | 10/22/2020 |
| 1.1.2631 | 2,084 | 10/13/2020 |
| 1.1.2531 | 1,959 | 9/27/2020 |
| 1.1.2400 | 2,172 | 9/2/2020 |
| 1.1.2394 | 2,249 | 9/1/2020 |
| 1.1.2301 | 2,229 | 8/18/2020 |
| 1.1.2039 | 2,079 | 6/15/2020 |
| 1.1.2007 | 2,200 | 6/3/2020 |
| 1.1.1943 | 2,073 | 5/21/2020 |
| 1.1.1895 | 2,140 | 5/11/2020 |
| 1.1.1852 | 2,058 | 5/4/2020 |
| 1.1.1823 | 2,144 | 4/26/2020 |
| 1.1.1784 | 2,205 | 4/21/2020 |
| 1.1.1715 | 2,034 | 4/6/2020 |
| 1.1.1682 | 2,008 | 3/29/2020 |
| 1.1.1586 | 2,204 | 3/22/2020 |
| 1.1.1549 | 2,076 | 3/16/2020 |
| 1.1.1318 | 2,168 | 3/3/2020 |
| 1.1.1152 | 2,154 | 2/17/2020 |
| 1.1.1067 | 2,407 | 2/10/2020 |
| 1.1.1003 | 2,074 | 2/7/2020 |
| 1.1.788 | 2,405 | 1/17/2020 |
| 1.1.778 | 2,533 | 1/4/2020 |
| 1.1.775 | 2,711 | 12/19/2019 |
| 1.1.753 | 2,145 | 12/2/2019 |
| 1.1.742 | 2,293 | 11/24/2019 |
| 1.1.741 | 2,166 | 11/21/2019 |
| 1.1.740 | 2,334 | 11/21/2019 |
| 1.1.738 | 2,212 | 11/21/2019 |
| 1.1.737 | 2,254 | 11/21/2019 |
| 1.0.0 | 2,412 | 11/21/2019 |