Magic.IndexedDb.Cli 4.2.0

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

Magic.IndexedDb.Cli

magicdb is the separately packaged .NET 11 tool for Magic IndexedDB 4. It exports models, scaffolds reviewed migration history, validates it, and publishes static browser assets. It never connects to or rewrites customers' browser data.

dotnet new tool-manifest
dotnet tool install --local Magic.IndexedDb.Cli --version 4.0.0
dotnet tool run magicdb -- --help

Commit the local tool manifest so development and CI use the same version. Use --schema model.json for a language-neutral model, or --project for an explicit runnable design-time schema exporter. A Blazor application's startup is not executed.

dotnet tool run magicdb -- migrations add Initial --schema model.json
dotnet tool run magicdb -- migrations validate --schema model.json
dotnet tool run magicdb -- migrations publish --schema model.json --output ./release-assets

Migration generation can produce unresolved manual operations. That creates a reviewable draft and exits 3. Validation and publishing reject it until the author supplies the transformation. Destructive operations require allowDataLoss:true.

Protection changes scaffold reprotect operations for authenticated, resumable rewrites. Both adding and removing encryption are supported authoring paths; exposing previously protected values requires an explicit allowProtectionLoss:true decision in the migration. The runtime receives authorization from the consuming application. Keys are never CLI inputs or static migration assets. Protected histories retain their authentication capability even if their latest model has only public fields.

Published JSON and modules are sealed by published.lock.json; commit it with the history. A released history cannot be silently edited, truncated, or overwritten. Use immutable deployment directories and pin the manifest to the running app release.

See the CLI guide for exporter setup, commands, adoption, automated tests, and diagnostics. Version 3 is intended for validation before production use; the release acceptance checklist and supported operations are documented in the repository.

License

The official v3 CLI and runtime, including previews, are offered under the Magic IndexedDB Community License 1.0. The CLI package carries that license, the historical MIT notice, and the applicable notices. Previously granted rights continue to apply to the materials they cover. See the licensing guide.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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
4.2.0 71 12/3/2026
4.1.1 92 12/1/2026
4.1.0 99 11/30/2026
4.0.0 152 11/28/2026
3.1.0 141 11/28/2026
3.0.0 112 11/26/2026