Command Line Interface

The Kampose CLI follows a command-based structure where you specify a command followed by command-specific options and arguments:

kampose <command> [OPTIONS] [ARGUMENTS]

When you run Kampose without a command, or with --help or -h, it displays help information. Use --version or -v to show the current version.

Commands

build

Generates documentation from .NET assemblies and XML comments.

The build command processes your .NET assemblies and XML documentation files to create API documentation using your chosen theme.

Usage:
kampose build [OPTIONS] [config-file]
Arguments:
Options:

Be cautious when using the --clean option, as it deletes all contents of the configured output directory before generating new documentation. This can cause data loss if the output directory contains important files or is misconfigured.

The --debug option increases logging verbosity when output is redirected (for example, to a log file or CI system). For normal console output it only enables stack traces for unhandled exceptions.

Examples:
# Use the default configuration file (kampose.json)
kampose build

# Use a custom configuration file
kampose build custom-config.json

# Specify a configuration file without the .json extension
kampose build my-config

# Generate documentation with debug output
kampose build my-config --debug > log.txt

# Clean the output directory before generating documentation
kampose build --clean

help

Shows help information about commands.

Use the help command to learn about Kampose's commands. When called without arguments, it lists all available commands. Specify a command name to see detailed help for that specific command.

Usage:
kampose help [command]
Arguments:
Options:
Examples:
# Show general help and list all commands
kampose help

# Show help for the build command
kampose help build

# Alternative ways to show general help
kampose --help
kampose -h

version

Shows the current version of Kampose.

Usage:
kampose version [OPTIONS]
Options:
Examples:
# Show version information
kampose version

# Alternative ways to show version
kampose --version
kampose -v

Global Options

These options work with any command:

Exit Codes

Kampose returns these exit codes to indicate what happened: