SkillAgentSearch skills...

Click Extra

🌈 Drop-in replacement for Click to make user-friendly and colorful CLI

Install / Use

npx skills add kdeldycke/click-extra

Installs into whichever agent you are using.

README

<p align="center"> <a href="https://github.com/kdeldycke/click-extra/"> <img src="https://raw.githubusercontent.com/kdeldycke/click-extra/main/docs/assets/logo-banner.svg" alt="Click Extra"> </a> </p>

Last release Python versions Downloads Unittests status Coverage status Documentation status DOI

What is Click Extra?

It should be easy to write a good CLI in Python. Click makes it so. But there is still hundrends of tweaks to implement by yourself to have a user-friendly CLI.

Click Extra is a ready-to-use wrapper around Click to make your CLI look good and behave well. It is a drop-in replacement with good defaults that saves lots of boilerplate code and frustration by making all parts working together.

It also comes with workarounds and patches that have not reached upstream yet (or are unlikely to).

Who is this for?

Anyone building a CLI who doesn't have time to assemble the pieces from scratch:

  • You use Click and want professional defaults without the boilerplate.
  • You're a security researcher turning a proof-of-concept into a presentable tool to hand off, demo, or attach to an advisory.
  • You're a DevOps engineer or sysadmin whose one-off script grew into a team tool and needs --help, --verbose, --config, and colored output.

Click Extra's defaults-first design means one decorator gets you there. See the 30-second quick start.

Demo

You can try Click Extra right now in your terminal, without installing any dependency or virtual env thanks to uvx:

$ uvx click-extra

This is a great way to play with Click Extra and check that it runs fine on your system, and renders properly in your terminal.

Example

It transforms this vanilla click CLI:

click CLI help screen

Into this:

click-extra CLI help screen

To understand how we ended up with the result above, go read the tutorial.

Features

Configuration

Help screens and theming

Standard options on every CLI

  • Colored --version with template variables for git metadata (branch, hash, date, tag) and pre-baking for compiled binaries (Nuitka, PyInstaller)
  • Colored --verbosity LEVEL and logs, plus -v/--verbose repetition for incremental bumping
  • --params to debug parameter defaults, values, environment variables and provenance
  • --tree to print the whole hierarchy of nested subcommands with their descriptions
  • --time/--no-time to measure command execution duration
  • --table-format to switch between 40+ table-rendering styles (uses print_table() and serialize_data())
  • --jobs for parallel-execution worker counts
  • --telemetry/--no-telemetry flag to opt-in/out of tracking code
  • --color[=WHEN] tri-state flag (auto/always/never) with a hidden --no-color alias, recognizing NO_COLOR (no-color.org), FORCE_COLOR, CLICOLOR, and LLM environment variables
  • Recognition of DO_NOT_TRACK from consoledonottrack.com for telemetry
  • Global show_envvar option to display all environment variables in help screens
  • Global show_choices to activate selection of choices on user input prompts
  • Auto-generation and normalization of environment variables for all options

Types and parameters

CLI wrapper

  • CLI wrapper (click-extra wrap) applies help colorization, themes, and config loading to any Click CLI without modifying its source code
  • --params mode to introspect any external Click CLI's parameters
  • --tree mode to print any external Click CLI's subcommand hierarchy without running it
  • User-defined themes via --config work transparently through the wrapper, so users can theme third-party CLIs from their own pyproject.toml

Performance and structure

  • [Lazy-loading of subcommands](https://kdeldycke.github.io/click-extra/commands.html#la

Related Skills

View on GitHub
GitHub Stars120
CategoryDevelopment
Updated4d ago
Forks10

Languages

Python

Security Score

100/100

Audited on Aug 4, 2026

No findings