Albatross.CodeGen.CommandLine
9.0.2-200.main
Prefix Reserved
This is a prerelease version of Albatross.CodeGen.CommandLine.
This package has a SemVer 2.0.0 package version: 9.0.2-200.main+bf14bdf.
dotnet tool install --global Albatross.CodeGen.CommandLine --version 9.0.2-200.main
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Albatross.CodeGen.CommandLine --version 9.0.2-200.main
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Albatross.CodeGen.CommandLine&version=9.0.2-200.main&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Albatross.CodeGen.CommandLine --version 9.0.2-200.main
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Albatross.CodeGen.CommandLine
Command-line tool for generating HTTP client proxies and DTOs from ASP.NET Core Web API projects. Analyzes C# projects using Roslyn and generates type-safe client code for TypeScript, Python, and C#.
Key Features
- Generate TypeScript HTTP clients and DTOs for Angular applications
- Generate Python async HTTP clients and dataclass DTOs
- Generate C# HTTP client proxies
- Roslyn-based project analysis for accurate type information
- Configurable via JSON settings files
- Ad-hoc filtering to select specific controllers
Installation
dotnet tool install --global Albatross.CodeGen.CommandLine
Quick Start
# Generate TypeScript web client
codegen typescript web-client -p MyWebApi.csproj -o ./generated/typescript
# Generate TypeScript DTOs only
codegen typescript dto -p MyWebApi.csproj -o ./generated/typescript
# Generate Python web client
codegen python web-client -p MyWebApi.csproj -o ./generated/python
# Generate Python DTOs only
codegen python dto -p MyWebApi.csproj -o ./generated/python
# Generate C# web client proxy
codegen csharp web-client -p MyWebApi.csproj -o ./generated/csharp
# Use settings file
codegen typescript web-client -p MyWebApi.csproj -s codegen-settings.json -o ./generated
Commands
| Command | Description |
|---|---|
typescript web-client |
Generate TypeScript HTTP client services |
typescript dto |
Generate TypeScript interfaces/types |
typescript entry-point |
Generate TypeScript barrel exports |
python web-client |
Generate Python async HTTP clients |
python dto |
Generate Python dataclass models |
csharp web-client |
Generate C# HTTP client proxies |
Dependencies
- Albatross.CodeGen.WebClient.CSharp (project reference)
- Albatross.CodeGen.WebClient.Python (project reference)
- Albatross.CodeGen.WebClient.TypeScript (project reference)
- Microsoft.CodeAnalysis.Workspaces.MSBuild 5.0.0
- NJsonSchema 11.5.2
- Albatross.CommandLine 8.0.1
Prerequisites
- .NET 10.0 SDK or later
- Target project must build successfully before code generation
Source Code
NuGet Package
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.0.2-200.main | 24 | 1/30/2026 |
| 9.0.1 | 38 | 1/9/2026 |
| 9.0.1-60.main | 67 | 11/21/2025 |
| 9.0.1-55.main | 88 | 11/19/2025 |
| 9.0.0-50.main | 62 | 11/11/2025 |
| 8.0.2 | 91 | 5/26/2025 |
| 8.0.1 | 81 | 3/19/2025 |
| 8.0.0 | 124 | 3/10/2025 |
| 7.6.3 | 186 | 3/7/2025 |
| 7.6.2 | 240 | 3/5/2025 |