SHORTLIST20
English
Englishالعربية中文日本語한국어EspañolFrançaisहिन्दी
Programming

C++ command-line libraries

C++ libraries for argument parsing and terminal apps, ranked by GitHub stars

Updated · GitHub stars (stars)

Why these 20

Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not quality, so each row also shows forks, licence and the last push. Tools without a public repository have no star count and can't be ranked here.

Is this list useful?
  1. 1

    FTXUI

    C++ Functional Terminal User Interface. [MIT]

    10,907 stars 628 forkslast push 2026-11-15C++MIT

  2. 2

    cxxopts

    Lightweight C++ command line option parser. [MIT]

    4,829 stars 675 forkslast push 2026-11-20C++MIT

  3. 3

    CLI11

    Header only single or multi-file C++11 library for simple and advanced CLI parsing. [BSD]

    4,528 stars 495 forkslast push 2026-11-21C++NOASSERTION

  4. 4

    linenoise

    A small self-contained alternative to readline and libedit. [BSD-2-Clause]

    4,372 stars 742 forkslast push 2026-05-02CBSD-2-Clause

  5. 5

    imtui

    Immediate Mode Text-based User Interface. [MIT]

    3,638 stars 154 forkslast push 2025-10-10C++MIT

  6. 6

    argparse

    Argument Parser for Modern C++. [MIT]

    3,569 stars 326 forkslast push 2026-10-05C++MIT

  7. 7

    indicators

    Activity indicators for Modern C++. [MIT]

    3,423 stars 271 forkslast push 2025-05-09C++MIT

  8. 8

    gflags

    Commandline flags module for C++. [BSD]

    3,029 stars 854 forkslast push 2026-07-25C++BSD-3-Clause

  9. 9

    tabulate

    Table Maker for Modern C++. [MIT]

    2,181 stars 159 forkslast push 2026-10-14C++MIT

  10. 10

    termbox

    A C library for writing text-based user interfaces. [MIT]

    2,004 stars 186 forkslast push 2020-08-25CMIT

  11. 11

    args

    A simple header-only C++ argument parser library. [MIT]

    1,646 stars 188 forkslast push 2026-10-23C++MIT

  12. 12

    Argh!

    A minimalist, frustration-free, header-only argument handler. [BSD]

    1,445 stars 98 forkslast push 2025-01-21C++BSD-3-Clause

  13. 13

    cli

    A cross-platform header only C++14 library for interactive command line interfaces (Cisco style). [Boost]

    1,377 stars 156 forkslast push 2026-11-06C++BSL-1.0

  14. 14

    clipp

    Easy to use, powerful and expressive command line argument handling for C++11/14/17 contained in a single header file. [MIT]

    1,326 stars 153 forkslast push 2024-05-30C++MIT

  15. 15

    PDCurses

    Public domain curses library with both source code and pre-compiled library available. [PublicDomain]

    1,256 stars 199 forkslast push 2026-09-20C

  16. 16

    FINAL CUT

    Library for creating terminal applications with text-based widgets. [LGPL]

    1,206 stars 62 forkslast push 2026-11-10C++LGPL-3.0

  17. 17

    docopt.cpp

    A library to generate option parser from docstring. [MIT/Boost]

    1,090 stars 144 forkslast push 2025-10-03C++BSL-1.0

  18. 18

    TermOx

    C++17 Terminal User Interface(TUI) Library. [MIT]

    881 stars 63 forkslast push 2026-10-21C++MIT

  19. 19

    oof

    Convenient, high-performance RGB color and position control for console output. [MIT]

    859 stars 40 forkslast push 2024-09-21C++MIT

  20. 20

    replxx

    A readline and libedit replacement that supports UTF-8, syntax highlighting, hints, works on Unix and Windows. [BSD]

    773 stars 135 forkslast push 2024-04-14C++NOASSERTION

How it is measured

Every tool in the CLI section(s) of the community list fffaraz/awesome-cpp on GitHub with a public repository, ranked by GitHub stars from the GitHub API; archived repositories are left out. Added by the daily list generator.

References

  1. fffaraz/awesome-cpp: CLI, GitHub community list (list text MIT; star counts from the GitHub API). Checked 2026-11-21 06:18 UTC.
  2. fffaraz/awesome-cpp (CLI), GitHub community list, 32 tools with a public repository.