Grad.CsLib.Tool 2.0.12

dotnet tool install --global Grad.CsLib.Tool --version 2.0.12
                    
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 Grad.CsLib.Tool --version 2.0.12
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Grad.CsLib.Tool&version=2.0.12
                    
nuke :add-package Grad.CsLib.Tool --version 2.0.12
                    

CsLib.Tool

cslib is a dotnet tool designed to automate common development tasks like database model generation and OpenAPI spec updates in Graduate College projects.

Installation

Install the tool locally:

dotnet tool install --local Grad.CsLib.Tool

Commands

  • dotnet tool run cslib -- rebuild-models: Runs migrations in a temporary Docker container and regenerates models.
  • dotnet tool run cslib -- openapi: Exports Swagger/OpenAPI JSON and builds the TypeScript client.

Project Requirements

The tool expects the following structure in the project it is run from:

  • A *Data.csproj project (e.g., MyProject.Data.csproj).
  • A *Server.csproj project (e.g., MyProject.Server.csproj).
  • A spec/ directory (for openapi command).
  • A .connection-string file (for rebuild-models command).

The .connection-string file should contain connection string elements with line breaks instead of semicolons. For example:

Server=example.org
Database=Example
Encrypt=True
Product 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
2.0.12 96 1/30/2026
2.0.11 90 1/29/2026
2.0.10 93 1/29/2026
2.0.9 89 1/29/2026
2.0.8 93 1/29/2026