A cross-platform CLI utility that orchestrates dotnet project workflows. Run clean, restore, build, run, and test in a single command — actions are automatically sorted into the correct order and redundant steps are removed.
npm install -g dotbuildRun from any directory containing a .sln or .csproj file.
# Run the default pipeline: clean → restore → test
dotbuild
# Run specific actions (in any order — they will be sorted automatically)
dotbuild clean
dotbuild restore build
dotbuild clean test build restore| Action | Command | Description |
|---|---|---|
clean |
dotnet clean |
Remove build artifacts |
restore |
dotnet restore |
Restore NuGet packages |
build |
dotnet build |
Compile the project |
run |
dotnet run |
Run the project |
test |
dotnet test |
Run tests (also builds) |
Actions are always executed in canonical order regardless of how they are passed:
clean → restore → build → run → test
# These are equivalent:
dotbuild clean restore build test
dotbuild test build restore cleanRedundant steps are automatically removed:
testalready builds, so passing bothbuildandtestwill only runtest
# build is dropped because test already builds
dotbuild build test
# → runs: test
dotbuild clean test build restore
# → runs: clean → restore → testActions run sequentially. If any action fails, execution stops immediately — subsequent actions will not run.
dotbuild clean restore build
# If restore fails, build will not runRunning dotbuild with no arguments executes: clean → restore → test
(build is included in the default set but optimized away since test covers it.)
MIT