Anarchy.Toolkit.Build.Cli 1.8.0

Suggested Alternatives

Anarchy.Toolkit.Automation

There is a newer version of this package available.
See the version list below for details.
dotnet add package Anarchy.Toolkit.Build.Cli --version 1.8.0
                    
NuGet\Install-Package Anarchy.Toolkit.Build.Cli -Version 1.8.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Anarchy.Toolkit.Build.Cli" Version="1.8.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Anarchy.Toolkit.Build.Cli" Version="1.8.0" />
                    
Directory.Packages.props
<PackageReference Include="Anarchy.Toolkit.Build.Cli" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Anarchy.Toolkit.Build.Cli --version 1.8.0
                    
#r "nuget: Anarchy.Toolkit.Build.Cli, 1.8.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Anarchy.Toolkit.Build.Cli@1.8.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Anarchy.Toolkit.Build.Cli&version=1.8.0
                    
Install as a Cake Addin
#tool nuget:?package=Anarchy.Toolkit.Build.Cli&version=1.8.0
                    
Install as a Cake Tool

Anarchy.Toolkit.Build.Cli

Part of Anarchy I/O Toolkit, a .NET developer platform · Pillar: Build Ecosystem · Layer: Build · Package catalog

The build and command-line operations shared by the toolkit's tooling: the Fallout build components (Anarchy.Toolkit.Build.Fallout) call them from their targets, and the anarchy-toolkit tool from its commands.

dotnet add package Anarchy.Toolkit.Build.Cli
  • Solutions: SolutionBootstrapper creates a complete solution from a SolutionPlan in an empty directory: the Fallout build host (BuildHostScaffolder), the packaged Makefile, scripts and settings files (SolutionScaffolder), a library per layer and the planned applications. SolutionWorkspace reads an existing solution's layout and ApplicationScaffolder adds an API, job or UI to it. Existing files are never overwritten.
  • Layouts: SolutionLayout places libraries and applications by folder (src/Library/<Layer>, src/Api, src/Jobs, src/Ui) or by name prefix (src/<Layer>.<Name>), and gives the matching ILayeringBuild parameters.
  • Build operations: layering checks, dependency maps, release versioning and notes, Git hooks, dependency upgrades and NuGet packaging, without depending on Fallout.
  • Agent skills: AgentSkillTasks reads the Make targets and their #@ skill markers, creates missing skills from a template and refreshes their generated commands (Sync), and checks them (Validate); the toolkit's own skills are the boilerplate's opt-in skills item.
  • Containers: LocalContainerTasks manages a Docker Compose environment; WaitForRunning takes an optional readiness callback for containers without a health check.
  • Banners: tools built on this package choose their banner with ConsoleBannerOptions: Anarchy's logo by default (AnarchyConsoleBanner), their own IConsoleBanner through Banner, or none with Hide = true. Write(console) prints it, skipping redirected output. The anarchy-toolkit tool always prints Anarchy's.

Most consumers should use the anarchy-toolkit tool or the Fallout targets rather than this package directly.

Distributed files

Boilerplate/ holds the Makefile, scripts, .gitignore, .editorconfig and agent skills (.agents/skills, installed only when selected) installed into generated solutions; together with the repository's global.json and nuget.config, it is embedded as-is. The repository's own .gitignore and .editorconfig start with the packaged ones and add their own entries below the managed block. BoilerplateCatalog lists and reads the packaged files and diffs them against a solution's copies (UnifiedDiff), so they can be inspected without installing them. The toolkit repository uses the same files in place through its root Makefile, which sets SCRIPTS_ROOT so that SCRIPTS_DIR (and shell completion) resolve to src/Build.Cli/Boilerplate/scripts. The scripts find the project root from PROJECT_ROOT (exported by the Makefile), else their parent directory.

Releases

1.8.0

  • fix(Build.Cli): pack the boilerplate at its source paths
  • feat(Build.Cli): ship a generic .gitignore synced through a managed block
  • feat(Build.Cli): show, diff and dry-run the boilerplate before installing it
  • feat(Build.Cli): keep the packaged .editorconfig in a managed block
  • docs(mock-server): add a guide covering recording and migrating from MockServer
  • feat(Build.Cli): ship adoption and runtime composition skills

1.7.0

  • feat(Build.Cli): add opt-in agent skills to the boilerplate
  • fix(Build.Cli): print a plain title on narrow terminals
  • fix(Build.Cli): keep shell completion working for including Makefiles

1.6.0

  • feat(Build.Fallout): run the mock server with or without its UI

1.5.1

  • docs(packages): identify each package's pillar and layer
  • build(packages): attribute the copyright to Leandro Melão Medeiros
  • build: relicense under Apache-2.0 and update the package metadata
  • fix(mock-server): default to port 6001, which browsers allow

1.5.0

  • build(deps): upgrade Swashbuckle.AspNetCore to 11.0.1 and Microsoft.OpenApi to 3.11.1
  • feat(Build.Cli): scaffold APIs without the Swagger theme and UIs with the logo and theme toggle

1.4.0

  • feat: OpenApiExpectationSync adds mock server expectations for OpenAPI/Swagger endpoints (file or URL, JSON or YAML) that have none, never changing existing ones and reporting changed or removed endpoints; mock_server_sync_openapi Make target

1.3.0

  • refactor: LocalPorts moved to Anarchy.Toolkit.Core.Helper (now references Anarchy.Toolkit.Core)
  • feat: mock-server.mk boilerplate targets for IMockServerBuild

1.2.2

  • docs: expand XML docblocks across all projects for the DocFX API reference

1.2.1

  • install-sdk.sh installs the pinned feature band (e.g. 10.0.1xx) when global.json only lets patches roll forward, the default, instead of a newer feature band its own check rejects; it also announces what it installs before downloading.
  • build.fallout.sh ignores a DOTNET_EXE that is not an executable (e.g. left over from a removed Homebrew SDK) and uses dotnet from PATH.
  • The bootstrap scripts print standard headings and colors through title.sh, subtitle.sh and colors.env; install-sdk.sh shows a title when run on its own and a subtitle when part of install_dev_env.

1.2.0

  • Configurable console banners: IConsoleBanner, AnarchyConsoleBanner and ConsoleBannerOptions let tools keep Anarchy's banner, render their own or print none.
  • LocalContainerTasks.WaitForRunning gains an overload with a readiness callback.

1.1.0

  • feat(Build.Fallout): replace AWS release flows with Docker and container builds

1.0.0

  • Introduced solution bootstrapping and scaffolding with configurable layering, application templates and the build operations extracted from Build.Fallout.
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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Anarchy.Toolkit.Build.Cli:

Package Downloads
Anarchy.Toolkit.Build.Fallout

Fallout build components: solution/test conventions, Microsoft.Testing.Platform-aware test runner, linting, layering checks, NuGet and ECR container release flows and local app runs.

GitHub repositories

This package is not used by any popular GitHub repositories.

Initial release.