Skip to main content
Version: Next

flyway CLI reference

ModularPipelines.Flyway provides strongly typed access to the flyway CLI.

Executable prerequisite

This package does not install the flyway executable. Install it separately and ensure flyway is available on PATH.

Follow the executable's official documentation for installation instructions.

Package installation

dotnet add package ModularPipelines.Flyway

Resolve the service with context.Tools.Flyway. Projects using C# 13 or another .NET language can use context.Tools.Get<ModularPipelines.Flyway.Services.IFlyway>() instead.

Module example

Resolve the service in a module, then select a command from the table below. A runnable example is omitted when no command has complete safety metadata:

var flyway = context.Tools.Flyway;

Commands

CLI commandOptions record
flyway addFlywayAddOptions
flyway authFlywayAuthOptions
flyway baselineFlywayBaselineOptions
flyway checkFlywayCheckOptions
flyway cleanFlywayCleanOptions
flyway deployFlywayDeployOptions
flyway diffFlywayDiffOptions
flyway diffApplyFlywayDiffApplyOptions
flyway diffTextFlywayDiffTextOptions
flyway generateFlywayGenerateOptions
flyway infoFlywayInfoOptions
flyway initFlywayInitOptions
flyway list-enginesFlywayListEnginesOptions
flyway migrateFlywayMigrateOptions
flyway prepareFlywayPrepareOptions
flyway repairFlywayRepairOptions
flyway snapshotFlywaySnapshotOptions
flyway undoFlywayUndoOptions
flyway validateFlywayValidateOptions