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:

The --debug option only affects the verbosity of the output when redirected (e.g., to a log file or CI/CD system).

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

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: