XenoAtom.CommandLine

A lightweight, powerful and NativeAOT-friendly command-line parser for .NET.
Build composable CLIs with commands, options, arguments, validation, and pluggable outputs.

Core package

Install XenoAtom.CommandLine for the parser, help system, validation, and completions.

dotnet add package XenoAtom.CommandLine
Terminal visuals (optional)

Add XenoAtom.CommandLine.Terminal for markup and rich visual output powered by XenoAtom.Terminal.UI.

dotnet add package XenoAtom.CommandLine.Terminal

Animation preview (default help, markup, visual output, and diagnostics):

XenoAtom.CommandLine output modes animation

Features

Commands & Arguments

Compose nested command trees and strict positional arguments with cardinality support.

Commands docs · Arguments docs

Option Parsing

Support -/--//, aliases, short bundles, key/value forms, and typed parsing.

Options docs

Validation & Constraints

Use built-in validators, custom delegates, mutually-exclusive options, and requires relationships.

Validation docs

Help & Diagnostics

Generate help automatically and provide context-aware errors with useful suggestions.

Help & output docs

Extensible Output

Swap output pipelines through ICommandOutput and choose default, markup, or custom formats.

Output customization docs

Terminal & Advanced

Add terminal markup/visual output, response files, completions, Parse API, and NativeAOT-friendly runtime behavior.

Help & output docs · Advanced docs · Migration 2.0