DatabaseShrinker 10.0.0

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

DatabaseShrinker

Shrinks all databases on a database server

How to install

Use the following command to install the program

dotnet tool install --global DatabaseShrinker

How to use

Simply run the program with the following command

shrinkdb -c "connection string"

Use one connection string

-c "connection string"

Use a connections.json file to use multiple connection string

-s "path/of/a/connections.json" : adds a json file with connection string(s) to shrink

And the rest

-v : show version
-h : shows this help

Additional settings

-l : log to file
-y : skip confirmation
-a : shrink all database(s)
-o : shrink only large database(s)
-d : set simple recovery mode and drop transaction log
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
10.0.0 132 1/9/2026