Guide
This guide walks through CLI11 chapter by chapter, from a first simple program to subcommands, configuration files, and the library internals. Read it in order, or jump to the chapter you need:
- Installation
- The Basics
- Adding Flags
- Options
- Validators
- Subcommands and the App
- Option groups
- Accepting configure files
- Formatting help output
- Unicode support
- Using CLI11 in a Toolkit
- Advanced topics
- CLI11 Internals
Examples
- Making a git clone — a walkthrough of a larger program
- Using CLI11 as a C++20 module — complete
import cli11;programs, with animport std;variant - Example programs — small, complete programs you can copy
A rendered version is part of the CLI11 documentation.
Feel free to contribute to this documentation here if something can be improved!