Themes
Themes are a simple way to customize the style of CLI help text as both an end-user and as a developer. Themes are one of rich-click’s most powerful features.
export RICH_CLICK_THEME=nord-nupython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ═ Runtime options ════════════════════════════════════════════════════════════════════════════════════════════════════ Options specifying the runtime # --environment -e Environment to run in [dev|staging|prod] (Required) (Env: APP_ENV) --env-file .env file [PATH] --retries -r Num retries for failed tasks [INTEGER RANGE 0<=x<=10] --vcpu -c Num vCPUs [INTEGER RANGE 1<=x<=32] (Default: 4) ═ Logging options ════════════════════════════════════════════════════════════════════════════════════════════════════ Logging config options --log-level -l Log level [debug|info|warning|error] (Default: info) (Env: APP_LOG_LEVEL) --colors/--no-colors -C/-n Whether to show colors in logs (Default: colors) --log-format Log format [TEXT] (Deprecated) --quiet/--no-quiet -q Print text (Deprecated: use --log-level instead) ═ Misc. options ══════════════════════════════════════════════════════════════════════════════════════════════════════ --version -v Show the version and exit. --help -h Show this message and exit. ═ Commands ═══════════════════════════════════════════════════════════════════════════════════════════════════════════ All subcommands admin Administrative commands db Database commands for app deploy Deploy app self Manage app (Deprecated: Use admin commands) For more assistance, visit https://example.com/
export RICH_CLICK_THEME=dracula-modernpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. Runtime options - Options specifying the runtime ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -e --environment [dev|staging|prod] [required] Environment to run in [env=APP_ENV] --env-file PATH .env file -r --retries INTEGER RANGE [0<=x<=10] Num retries for failed tasks -c --vcpu INTEGER RANGE [1<=x<=32] Num vCPUs [default=4] Logging options - Logging config options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -l --log-level [debug|info|warning|error] Log level [env=APP_LOG_LEVEL] [default=info] -C / -n --colors / --no-colors Whether to show colors in logs [default=colors] --log-format [TEXT] Log format [deprecated] -q --quiet / --no-quiet Print text [deprecated: use --log-level instead] Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -v --version Show the version and exit. -h --help Show this message and exit. Commands - All subcommands ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── admin Administrative commands db Database commands for app deploy Deploy app self Manage app [deprecated: Use admin commands] For more assistance, visit https://example.com/
export RICH_CLICK_THEME=cargo-slimpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. Runtime options: Options specifying the runtime -e --environment <dev|staging|prod> Environment to run in [required] [env: APP_ENV=] --env-file <PATH> .env file -r --retries <INTEGER RANGE> Num retries for failed tasks [range: 0<=x<=10] -c --vcpu <INTEGER RANGE> Num vCPUs [range: 1<=x<=32] [default=4] Logging options: Logging config options -l --log-level <debug|info|warning|error> Log level [default=info] [env: APP_LOG_LEVEL=] -C/-n --colors/--no-colors Whether to show colors in logs [default=colors] --log-format <TEXT> Log format [deprecated] -q --quiet/--no-quiet Print text [deprecated: use --log-level instead] Misc. options: -v --version Show the version and exit. -h --help Show this message and exit. Commands: All subcommands admin Administrative commands db Database commands for app deploy Deploy app self Manage app [deprecated: Use admin commands] For more assistance, visit https://example.com/
export RICH_CLICK_THEME=forest-robopython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ┌─ Runtime options ──────────────────────────────────────────────────────────────────────────────────────────────────┐ │ │ │ Options specifying the runtime │ │ -e, --environment [dev|staging|prod] ❮REQUIRED❯ Environment to run in ❮ENV: APP_ENV=❯ │ │ --env-file PATH .env file │ │ -r, --retries INTEGER RANGE 0<=x<=10 Num retries for failed tasks │ │ -c, --vcpu INTEGER RANGE 1<=x<=32 Num vCPUs ❮DEFAULT: 4❯ │ │ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ┌─ Logging options ──────────────────────────────────────────────────────────────────────────────────────────────────┐ │ │ │ Logging config options │ │ -l, --log-level [debug|info|warning|error] Log level ❮DEFAULT: info❯ ❮ENV: APP_LOG_LEVEL=❯ │ │ -C, --colors -n, --no-colors Whether to show colors in logs ❮DEFAULT: colors❯ │ │ --log-format [TEXT] Log format ❮DEPRECATED❯ │ │ -q, --quiet --no-quiet Print text ❮DEPRECATED: use --log-level instead❯ │ │ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ┌─ Misc. options ────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ │ │ -v, --version Show the version and exit. │ │ -h, --help Show this message and exit. │ │ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ┌─ Commands ─────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ │ │ All subcommands │ │ admin Administrative commands │ │ db Database commands for app │ │ deploy Deploy app │ │ self Manage app ❮DEPRECATED: Use admin commands❯ │ │ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ For more assistance, visit https://example.com/
export RICH_CLICK_THEME=solarized-squarepython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ┌─ Runtime options ────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Options specifying the runtime │ │ * --environment -e [dev|staging|prod] Environment to run in [env var: APP_ENV] [required] │ │ --env-file PATH .env file │ │ --retries -r INTEGER RANGE [0<=x<=10] Num retries for failed tasks │ │ --vcpu -c INTEGER RANGE [1<=x<=32] Num vCPUs [default: 4] │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ┌─ Logging options ────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Logging config options │ │ --log-level -l [debug|info|warning|error] Log level [env var: APP_LOG_LEVEL] [default: info] │ │ --colors/--no-colors -C/-n Whether to show colors in logs [default: colors] │ │ --log-format [TEXT] Log format [deprecated] │ │ --quiet/--no-quiet -q Print text [deprecated: use --log-level instead] │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ┌─ Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ --version -v Show the version and exit. │ │ --help -h Show this message and exit. │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ┌─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ All subcommands │ │ admin Administrative commands │ │ db Database commands for app │ │ deploy Deploy app │ │ self Manage app [deprecated: Use admin commands] │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ For more assistance, visit https://example.com/
Themes consist of Color Palettes and Formats, which can be mixed and matched.
The name of a full theme has the following schema: {color_palette}-{format}.
For example, the forest-slim theme uses the forest color palette and the slim format.
Code for cli.py
The following CLI code is used throughout this module to show off themes.
# /// script# dependencies = ["rich-click>=1.9"]# ///
help="Environment to run in", required=True, envvar="APP_ENV", show_envvar=True) help=".env file") help="Num retries for failed tasks") default=4, show_default=True, help="Num vCPUs") default=4, show_default=True, hidden=True, help="Memory (this is hidden)") default="info", show_default=True, help="Log level", envvar="APP_LOG_LEVEL", show_envvar=True) default=True, show_default=True, help="Whether to show colors in logs") show_choices=False, deprecated=True, help="Log format") deprecated="use --log-level instead", help="Print text") options=["environment", "env_file", "retries", "vcpu"], help="Options specifying the runtime") options=["log_level", "colors", "log_format", "quiet"], help="Logging config options")def cli(*args, **kwargs): """ CLI for app
This is a production-ready application. """
@cli.command("db")def db(): """Database commands for app"""
@cli.command("deploy")def deploy(): """Deploy app"""
@cli.command("admin")def admin(): """Administrative commands"""
@cli.command("self", deprecated="Use admin commands")def self(): """Manage app"""
@cli.command("user", hidden=True)def user(): """User commands (This is hidden)"""
if __name__ == "__main__": cli()Themes as an end-user
Section titled “Themes as an end-user”Unless a developer specifies otherwise, every rich-click CLI can have a theme applied by an end-user by setting the RICH_CLICK_THEME env var.
If you’d like to set a global theme, add the following to your shell’s config file (replacing star-modern with whatever theme you desire):
echo "export RICH_CLICK_THEME=star-modern" >> ~/.bashrcecho "export RICH_CLICK_THEME=star-modern" >> ~/.zshrcThemes will also be used when you wrap a base Click CLI in the rich-click CLI, e.g.:
export RICH_CLICK_THEME=star-modernrich-click flask --helpexport RICH_CLICK_THEME=star-modernuv run --with=flask --with=rich-click \ rich-click flask --help$ RICH_CLICK_THEME=star-modern rich-click flask --helpUsage: flask [OPTIONS] COMMAND [ARGS]... A general utility script for Flask applications. An application to load must be given with the '--app' option, 'FLASK_APP' environment variable, or with a 'wsgi.py' or 'app.py' file in the current directory. Options ──────────────────────────────────────────────────────────────────────────────────────────────── -e --env-file FILE Load environment variables from this file, taking precedence over those set by '.env' and '.flaskenv'. Variables set directly in the environment take highest precedence. python-dotenv must be installed. -A --app IMPORT The Flask application or factory function to load, in the form 'module:name'. Module can be a dotted import or file path. Name is not required if it is 'app', 'application', 'create_app', or 'make_app', and can be 'name(args)' to pass arguments. --debug / --no-debug Set debug mode. --version Show the Flask version. --help Show this message and exit. Commands ──────────────────────────────────────────────────────────────────────────────────────────────── routes Show the routes for the app. run Run a development server. shell Run a shell in the app context.
Alternatively, when using the rich-click [cmd] CLI, you can pass a theme via the --theme/-t option:
rich-click -t star-slim flask --helpuv run --with=flask --with=rich-click \ rich-click --theme=star-slim flask --help$ rich-click -t star-slim flask --helpUsage: flask [OPTIONS] COMMAND [ARGS]... A general utility script for Flask applications. An application to load must be given with the '--app' option, 'FLASK_APP' environment variable, or with a 'wsgi.py' or 'app.py' file in the current directory. Options: -e --env-file <FILE> Load environment variables from this file, taking precedence over those set by '.env' and '.flaskenv'. Variables set directly in the environment take highest precedence. python-dotenv must be installed. -A --app <IMPORT> The Flask application or factory function to load, in the form 'module:name'. Module can be a dotted import or file path. Name is not required if it is 'app', 'application', 'create_app', or 'make_app', and can be 'name(args)' to pass arguments. --debug/--no-debug Set debug mode. --version Show the Flask version. --help Show this message and exit. Commands: routes Show the routes for the app. run Run a development server. shell Run a shell in the app context.
The RICH_CLICK_THEME env var can also be a full JSON representation of a config.
For example, let’s say you prefer having commands above options. There is a config option for this, commands_before_options, and you can place that in the RICH_CLICK_THEME env var:
export RICH_CLICK_THEME='{"commands_before_options": true, "theme": "red1-nu"}'rich-click flask --helpexport RICH_CLICK_THEME='{"commands_before_options": true, "theme": "red1-nu"}'uv run --with=flask --with=rich-click \ rich-click flask --help$ rich-click flask --helpUsage: flask [OPTIONS] COMMAND [ARGS]... A general utility script for Flask applications. An application to load must be given with the '--app' option, 'FLASK_APP' environment variable, or with a 'wsgi.py' or 'app.py' file in the current directory. ═ Commands ═══════════════════════════════════════════════════════════════════════════════════════ routes Show the routes for the app. run Run a development server. shell Run a shell in the app context. ═ Options ════════════════════════════════════════════════════════════════════════════════════════ --env-file -e Load environment variables from this file, taking precedence over those set by '.env' and '.flaskenv'. Variables set directly in the environment take highest precedence. python-dotenv must be installed. [FILE] --app -A The Flask application or factory function to load, in the form 'module:name'. Module can be a dotted import or file path. Name is not required if it is 'app', 'application', 'create_app', or 'make_app', and can be 'name(args)' to pass arguments. [IMPORT] --debug/--no-debug Set debug mode. --version Show the Flask version. --help Show this message and exit.
Themes as a developer
Section titled “Themes as a developer”You can set a theme for your CLI by setting it in the config:
def cli(): """My CLI help text"""
def cli(): """My CLI help text"""
def cli(): """My CLI help text"""For more advanced CLIs, with lots of other customization options, there are additional considerations with themes and how they interact with your config that you may want to consider, especially in relation to end users being able to override the theme. For more information on this, read the Configuration docs.
Light and dark terminals
Section titled “Light and dark terminals”Most color palettes use your terminal’s own colors, so they work on both dark and light backgrounds.
The nord and dracula palettes use fixed colors designed for dark backgrounds, so they each have a light version: nord_light and dracula_light (Dracula’s official light palette, Alucard).
rich-click switches to these automatically when it detects a light background, e.g. nord-modern becomes nord_light-modern.
You can also use the light versions directly, like any other palette.
Instead of a single theme name, you can give a pair of themes: one for dark terminal backgrounds and one for light ones.
This works everywhere a theme name does: RICH_CLICK_THEME, rich-click --theme, and your CLI’s config.
export RICH_CLICK_THEME="dark:nord-modern,light:solarized-modern"
def cli(): """My CLI help text"""The background is only detected when help text or an error is shown, so running your CLI normally is not slowed down. Detection checks, in order:
- The
RICH_CLICK_BACKGROUNDenv var (darkorlight). Set this to override detection. - The
COLORFGBGenv var, which some terminals set (e.g. iTerm2, Konsole, rxvt). It is set when the terminal session starts, so it can be out of date if you change the terminal’s colors afterwards, for example when it follows your system’s light/dark mode. If rich-click picks the wrong theme, open a new session, or rununset COLORFGBGso that rich-click asks the terminal instead. - Asking the terminal for its background color. This only happens on macOS/Linux, when input and output are both an interactive terminal. Most modern terminals answer (iTerm2, Terminal.app, kitty, WezTerm, Alacritty, GNOME Terminal, Ghostty, xterm); rich-click waits at most 0.1 seconds, or 0.5 seconds over SSH.
If the background can’t be detected (e.g. on Windows, or when output is piped), the first theme in a pair is used, and nord and dracula keep their dark colors.
Themes picked from a pair are used exactly as given, so dark:nord-modern,light:nord-modern always uses the dark nord colors.
You can also use the detection yourself, for example to pick custom colors:
primary_color = "#2b569c"else: # "dark" or None (unknown) primary_color = "#99bbf2"All themes
Section titled “All themes”Formats
Section titled “Formats”There are currently 6 available formats.
(Default) Original rich-click format with boxes.
$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ╭─ Runtime options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Options specifying the runtime │ │ * --environment -e [dev|staging|prod] Environment to run in [env var: APP_ENV] [required] │ │ --env-file PATH .env file │ │ --retries -r INTEGER RANGE [0<=x<=10] Num retries for failed tasks │ │ --vcpu -c INTEGER RANGE [1<=x<=32] Num vCPUs [default: 4] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Logging config options │ │ --log-level -l [debug|info|warning|error] Log level [env var: APP_LOG_LEVEL] [default: info] │ │ --colors/--no-colors -C/-n Whether to show colors in logs [default: colors] │ │ --log-format [TEXT] Log format [deprecated] │ │ --quiet/--no-quiet -q Print text [deprecated: use --log-level instead] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ --version -v Show the version and exit. │ │ --help -h Show this message and exit. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ All subcommands │ │ admin Administrative commands │ │ db Database commands for app │ │ deploy Deploy app │ │ self Manage app [deprecated: Use admin commands] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ For more assistance, visit https://example.com/
Original rich-click format with square boxes.
$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ┌─ Runtime options ────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Options specifying the runtime │ │ * --environment -e [dev|staging|prod] Environment to run in [env var: APP_ENV] [required] │ │ --env-file PATH .env file │ │ --retries -r INTEGER RANGE [0<=x<=10] Num retries for failed tasks │ │ --vcpu -c INTEGER RANGE [1<=x<=32] Num vCPUs [default: 4] │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ┌─ Logging options ────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Logging config options │ │ --log-level -l [debug|info|warning|error] Log level [env var: APP_LOG_LEVEL] [default: info] │ │ --colors/--no-colors -C/-n Whether to show colors in logs [default: colors] │ │ --log-format [TEXT] Log format [deprecated] │ │ --quiet/--no-quiet -q Print text [deprecated: use --log-level instead] │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ┌─ Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ --version -v Show the version and exit. │ │ --help -h Show this message and exit. │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ┌─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ All subcommands │ │ admin Administrative commands │ │ db Database commands for app │ │ deploy Deploy app │ │ self Manage app [deprecated: Use admin commands] │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ For more assistance, visit https://example.com/
Simple, classic, no-fuss CLI format.
$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. Runtime options: Options specifying the runtime -e --environment <dev|staging|prod> Environment to run in [required] [env: APP_ENV=] --env-file <PATH> .env file -r --retries <INTEGER RANGE> Num retries for failed tasks [range: 0<=x<=10] -c --vcpu <INTEGER RANGE> Num vCPUs [range: 1<=x<=32] [default=4] Logging options: Logging config options -l --log-level <debug|info|warning|error> Log level [default=info] [env: APP_LOG_LEVEL=] -C/-n --colors/--no-colors Whether to show colors in logs [default=colors] --log-format <TEXT> Log format [deprecated] -q --quiet/--no-quiet Print text [deprecated: use --log-level instead] Misc. options: -v --version Show the version and exit. -h --help Show this message and exit. Commands: All subcommands admin Administrative commands db Database commands for app deploy Deploy app self Manage app [deprecated: Use admin commands] For more assistance, visit https://example.com/
Beautiful modern look.
$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. Runtime options - Options specifying the runtime ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -e --environment [dev|staging|prod] [required] Environment to run in [env=APP_ENV] --env-file PATH .env file -r --retries INTEGER RANGE [0<=x<=10] Num retries for failed tasks -c --vcpu INTEGER RANGE [1<=x<=32] Num vCPUs [default=4] Logging options - Logging config options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -l --log-level [debug|info|warning|error] Log level [env=APP_LOG_LEVEL] [default=info] -C / -n --colors / --no-colors Whether to show colors in logs [default=colors] --log-format [TEXT] Log format [deprecated] -q --quiet / --no-quiet Print text [deprecated: use --log-level instead] Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -v --version Show the version and exit. -h --help Show this message and exit. Commands - All subcommands ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── admin Administrative commands db Database commands for app deploy Deploy app self Manage app [deprecated: Use admin commands] For more assistance, visit https://example.com/
Spacious with sharp corners.
$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ┌─ Runtime options ──────────────────────────────────────────────────────────────────────────────────────────────────┐ │ │ │ Options specifying the runtime │ │ -e, --environment [dev|staging|prod] ❮REQUIRED❯ Environment to run in ❮ENV: APP_ENV=❯ │ │ --env-file PATH .env file │ │ -r, --retries INTEGER RANGE 0<=x<=10 Num retries for failed tasks │ │ -c, --vcpu INTEGER RANGE 1<=x<=32 Num vCPUs ❮DEFAULT: 4❯ │ │ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ┌─ Logging options ──────────────────────────────────────────────────────────────────────────────────────────────────┐ │ │ │ Logging config options │ │ -l, --log-level [debug|info|warning|error] Log level ❮DEFAULT: info❯ ❮ENV: APP_LOG_LEVEL=❯ │ │ -C, --colors -n, --no-colors Whether to show colors in logs ❮DEFAULT: colors❯ │ │ --log-format [TEXT] Log format ❮DEPRECATED❯ │ │ -q, --quiet --no-quiet Print text ❮DEPRECATED: use --log-level instead❯ │ │ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ┌─ Misc. options ────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ │ │ -v, --version Show the version and exit. │ │ -h, --help Show this message and exit. │ │ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ┌─ Commands ─────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ │ │ All subcommands │ │ admin Administrative commands │ │ db Database commands for app │ │ deploy Deploy app │ │ self Manage app ❮DEPRECATED: Use admin commands❯ │ │ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ For more assistance, visit https://example.com/
Great balance of compactness, legibility, and style.
$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ═ Runtime options ════════════════════════════════════════════════════════════════════════════════════════════════════ Options specifying the runtime # --environment -e Environment to run in [dev|staging|prod] (Required) (Env: APP_ENV) --env-file .env file [PATH] --retries -r Num retries for failed tasks [INTEGER RANGE 0<=x<=10] --vcpu -c Num vCPUs [INTEGER RANGE 1<=x<=32] (Default: 4) ═ Logging options ════════════════════════════════════════════════════════════════════════════════════════════════════ Logging config options --log-level -l Log level [debug|info|warning|error] (Default: info) (Env: APP_LOG_LEVEL) --colors/--no-colors -C/-n Whether to show colors in logs (Default: colors) --log-format Log format [TEXT] (Deprecated) --quiet/--no-quiet -q Print text (Deprecated: use --log-level instead) ═ Misc. options ══════════════════════════════════════════════════════════════════════════════════════════════════════ --version -v Show the version and exit. --help -h Show this message and exit. ═ Commands ═══════════════════════════════════════════════════════════════════════════════════════════════════════════ All subcommands admin Administrative commands db Database commands for app deploy Deploy app self Manage app (Deprecated: Use admin commands) For more assistance, visit https://example.com/
Color palettes
Section titled “Color palettes”There are currently over a dozen different color palettes.
Multi-colored palettes
Section titled “Multi-colored palettes”Default Original rich-click colors.
export RICH_CLICK_THEME=default-boxpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ╭─ Runtime options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Options specifying the runtime │ │ * --environment -e [dev|staging|prod] Environment to run in [env var: APP_ENV] [required] │ │ --env-file PATH .env file │ │ --retries -r INTEGER RANGE [0<=x<=10] Num retries for failed tasks │ │ --vcpu -c INTEGER RANGE [1<=x<=32] Num vCPUs [default: 4] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Logging config options │ │ --log-level -l [debug|info|warning|error] Log level [env var: APP_LOG_LEVEL] [default: info] │ │ --colors/--no-colors -C/-n Whether to show colors in logs [default: colors] │ │ --log-format [TEXT] Log format [deprecated] │ │ --quiet/--no-quiet -q Print text [deprecated: use --log-level instead] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ --version -v Show the version and exit. │ │ --help -h Show this message and exit. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ All subcommands │ │ admin Administrative commands │ │ db Database commands for app │ │ deploy Deploy app │ │ self Manage app [deprecated: Use admin commands] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ For more assistance, visit https://example.com/
Bright, colorful, vibrant accents.
export RICH_CLICK_THEME=solarized-boxpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ╭─ Runtime options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Options specifying the runtime │ │ * --environment -e [dev|staging|prod] Environment to run in [env var: APP_ENV] [required] │ │ --env-file PATH .env file │ │ --retries -r INTEGER RANGE [0<=x<=10] Num retries for failed tasks │ │ --vcpu -c INTEGER RANGE [1<=x<=32] Num vCPUs [default: 4] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Logging config options │ │ --log-level -l [debug|info|warning|error] Log level [env var: APP_LOG_LEVEL] [default: info] │ │ --colors/--no-colors -C/-n Whether to show colors in logs [default: colors] │ │ --log-format [TEXT] Log format [deprecated] │ │ --quiet/--no-quiet -q Print text [deprecated: use --log-level instead] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ --version -v Show the version and exit. │ │ --help -h Show this message and exit. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ All subcommands │ │ admin Administrative commands │ │ db Database commands for app │ │ deploy Deploy app │ │ self Manage app [deprecated: Use admin commands] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ For more assistance, visit https://example.com/
Many shades of cool colors. Showing the dark mode variant.Showing the light mode variant, nord_light.
export RICH_CLICK_THEME=nord-boxpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ╭─ Runtime options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Options specifying the runtime │ │ * --environment -e [dev|staging|prod] Environment to run in [env var: APP_ENV] [required] │ │ --env-file PATH .env file │ │ --retries -r INTEGER RANGE [0<=x<=10] Num retries for failed tasks │ │ --vcpu -c INTEGER RANGE [1<=x<=32] Num vCPUs [default: 4] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Logging config options │ │ --log-level -l [debug|info|warning|error] Log level [env var: APP_LOG_LEVEL] [default: info] │ │ --colors/--no-colors -C/-n Whether to show colors in logs [default: colors] │ │ --log-format [TEXT] Log format [deprecated] │ │ --quiet/--no-quiet -q Print text [deprecated: use --log-level instead] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ --version -v Show the version and exit. │ │ --help -h Show this message and exit. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ All subcommands │ │ admin Administrative commands │ │ db Database commands for app │ │ deploy Deploy app │ │ self Manage app [deprecated: Use admin commands] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ For more assistance, visit https://example.com/
$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ╭─ Runtime options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Options specifying the runtime │ │ * --environment -e [dev|staging|prod] Environment to run in [env var: APP_ENV] [required] │ │ --env-file PATH .env file │ │ --retries -r INTEGER RANGE [0<=x<=10] Num retries for failed tasks │ │ --vcpu -c INTEGER RANGE [1<=x<=32] Num vCPUs [default: 4] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Logging config options │ │ --log-level -l [debug|info|warning|error] Log level [env var: APP_LOG_LEVEL] [default: info] │ │ --colors/--no-colors -C/-n Whether to show colors in logs [default: colors] │ │ --log-format [TEXT] Log format [deprecated] │ │ --quiet/--no-quiet -q Print text [deprecated: use --log-level instead] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ --version -v Show the version and exit. │ │ --help -h Show this message and exit. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ All subcommands │ │ admin Administrative commands │ │ db Database commands for app │ │ deploy Deploy app │ │ self Manage app [deprecated: Use admin commands] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ For more assistance, visit https://example.com/
Litestar official theme.
export RICH_CLICK_THEME=star-boxpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ╭─ Runtime options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Options specifying the runtime │ │ * --environment -e [dev|staging|prod] Environment to run in [env var: APP_ENV] [required] │ │ --env-file PATH .env file │ │ --retries -r INTEGER RANGE [0<=x<=10] Num retries for failed tasks │ │ --vcpu -c INTEGER RANGE [1<=x<=32] Num vCPUs [default: 4] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Logging config options │ │ --log-level -l [debug|info|warning|error] Log level [env var: APP_LOG_LEVEL] [default: info] │ │ --colors/--no-colors -C/-n Whether to show colors in logs [default: colors] │ │ --log-format [TEXT] Log format [deprecated] │ │ --quiet/--no-quiet -q Print text [deprecated: use --log-level instead] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ --version -v Show the version and exit. │ │ --help -h Show this message and exit. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ All subcommands │ │ admin Administrative commands │ │ db Database commands for app │ │ deploy Deploy app │ │ self Manage app [deprecated: Use admin commands] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ For more assistance, visit https://example.com/
Dark and radiant.
export RICH_CLICK_THEME=quartz-boxpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ╭─ Runtime options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Options specifying the runtime │ │ * --environment -e [dev|staging|prod] Environment to run in [env var: APP_ENV] [required] │ │ --env-file PATH .env file │ │ --retries -r INTEGER RANGE [0<=x<=10] Num retries for failed tasks │ │ --vcpu -c INTEGER RANGE [1<=x<=32] Num vCPUs [default: 4] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Logging config options │ │ --log-level -l [debug|info|warning|error] Log level [env var: APP_LOG_LEVEL] [default: info] │ │ --colors/--no-colors -C/-n Whether to show colors in logs [default: colors] │ │ --log-format [TEXT] Log format [deprecated] │ │ --quiet/--no-quiet -q Print text [deprecated: use --log-level instead] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ --version -v Show the version and exit. │ │ --help -h Show this message and exit. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ All subcommands │ │ admin Administrative commands │ │ db Database commands for app │ │ deploy Deploy app │ │ self Manage app [deprecated: Use admin commands] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ For more assistance, visit https://example.com/
Remix of ‘quartz’ with accents.
export RICH_CLICK_THEME=quartz2-boxpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ╭─ Runtime options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Options specifying the runtime │ │ * --environment -e [dev|staging|prod] Environment to run in [env var: APP_ENV] [required] │ │ --env-file PATH .env file │ │ --retries -r INTEGER RANGE [0<=x<=10] Num retries for failed tasks │ │ --vcpu -c INTEGER RANGE [1<=x<=32] Num vCPUs [default: 4] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Logging config options │ │ --log-level -l [debug|info|warning|error] Log level [env var: APP_LOG_LEVEL] [default: info] │ │ --colors/--no-colors -C/-n Whether to show colors in logs [default: colors] │ │ --log-format [TEXT] Log format [deprecated] │ │ --quiet/--no-quiet -q Print text [deprecated: use --log-level instead] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ --version -v Show the version and exit. │ │ --help -h Show this message and exit. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ All subcommands │ │ admin Administrative commands │ │ db Database commands for app │ │ deploy Deploy app │ │ self Manage app [deprecated: Use admin commands] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ For more assistance, visit https://example.com/
Cargo CLI theme; legible and bold.
export RICH_CLICK_THEME=cargo-boxpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ╭─ Runtime options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Options specifying the runtime │ │ * --environment -e [dev|staging|prod] Environment to run in [env var: APP_ENV] [required] │ │ --env-file PATH .env file │ │ --retries -r INTEGER RANGE [0<=x<=10] Num retries for failed tasks │ │ --vcpu -c INTEGER RANGE [1<=x<=32] Num vCPUs [default: 4] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Logging config options │ │ --log-level -l [debug|info|warning|error] Log level [env var: APP_LOG_LEVEL] [default: info] │ │ --colors/--no-colors -C/-n Whether to show colors in logs [default: colors] │ │ --log-format [TEXT] Log format [deprecated] │ │ --quiet/--no-quiet -q Print text [deprecated: use --log-level instead] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ --version -v Show the version and exit. │ │ --help -h Show this message and exit. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ All subcommands │ │ admin Administrative commands │ │ db Database commands for app │ │ deploy Deploy app │ │ self Manage app [deprecated: Use admin commands] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ For more assistance, visit https://example.com/
Earthy tones with analogous colors.
export RICH_CLICK_THEME=forest-boxpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ╭─ Runtime options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Options specifying the runtime │ │ * --environment -e [dev|staging|prod] Environment to run in [env var: APP_ENV] [required] │ │ --env-file PATH .env file │ │ --retries -r INTEGER RANGE [0<=x<=10] Num retries for failed tasks │ │ --vcpu -c INTEGER RANGE [1<=x<=32] Num vCPUs [default: 4] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Logging config options │ │ --log-level -l [debug|info|warning|error] Log level [env var: APP_LOG_LEVEL] [default: info] │ │ --colors/--no-colors -C/-n Whether to show colors in logs [default: colors] │ │ --log-format [TEXT] Log format [deprecated] │ │ --quiet/--no-quiet -q Print text [deprecated: use --log-level instead] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ --version -v Show the version and exit. │ │ --help -h Show this message and exit. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ All subcommands │ │ admin Administrative commands │ │ db Database commands for app │ │ deploy Deploy app │ │ self Manage app [deprecated: Use admin commands] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ For more assistance, visit https://example.com/
Vibrant high-contrast dark theme. Showing the dark mode variant.Showing the light mode variant, dracula_light.
export RICH_CLICK_THEME=dracula-boxpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ╭─ Runtime options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Options specifying the runtime │ │ * --environment -e [dev|staging|prod] Environment to run in [env var: APP_ENV] [required] │ │ --env-file PATH .env file │ │ --retries -r INTEGER RANGE [0<=x<=10] Num retries for failed tasks │ │ --vcpu -c INTEGER RANGE [1<=x<=32] Num vCPUs [default: 4] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Logging config options │ │ --log-level -l [debug|info|warning|error] Log level [env var: APP_LOG_LEVEL] [default: info] │ │ --colors/--no-colors -C/-n Whether to show colors in logs [default: colors] │ │ --log-format [TEXT] Log format [deprecated] │ │ --quiet/--no-quiet -q Print text [deprecated: use --log-level instead] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ --version -v Show the version and exit. │ │ --help -h Show this message and exit. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ All subcommands │ │ admin Administrative commands │ │ db Database commands for app │ │ deploy Deploy app │ │ self Manage app [deprecated: Use admin commands] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ For more assistance, visit https://example.com/
$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ╭─ Runtime options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Options specifying the runtime │ │ * --environment -e [dev|staging|prod] Environment to run in [env var: APP_ENV] [required] │ │ --env-file PATH .env file │ │ --retries -r INTEGER RANGE [0<=x<=10] Num retries for failed tasks │ │ --vcpu -c INTEGER RANGE [1<=x<=32] Num vCPUs [default: 4] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Logging config options │ │ --log-level -l [debug|info|warning|error] Log level [env var: APP_LOG_LEVEL] [default: info] │ │ --colors/--no-colors -C/-n Whether to show colors in logs [default: colors] │ │ --log-format [TEXT] Log format [deprecated] │ │ --quiet/--no-quiet -q Print text [deprecated: use --log-level instead] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ --version -v Show the version and exit. │ │ --help -h Show this message and exit. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ All subcommands │ │ admin Administrative commands │ │ db Database commands for app │ │ deploy Deploy app │ │ self Manage app [deprecated: Use admin commands] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ For more assistance, visit https://example.com/
Simple palettes
Section titled “Simple palettes”The following palettes all focus on just a single color.
The below palettes are presented with the modern format.
Simple theme with red accents on section headers.
export RICH_CLICK_THEME=red1-modernpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. Runtime options - Options specifying the runtime ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -e --environment [dev|staging|prod] [required] Environment to run in [env=APP_ENV] --env-file PATH .env file -r --retries INTEGER RANGE [0<=x<=10] Num retries for failed tasks -c --vcpu INTEGER RANGE [1<=x<=32] Num vCPUs [default=4] Logging options - Logging config options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -l --log-level [debug|info|warning|error] Log level [env=APP_LOG_LEVEL] [default=info] -C / -n --colors / --no-colors Whether to show colors in logs [default=colors] --log-format [TEXT] Log format [deprecated] -q --quiet / --no-quiet Print text [deprecated: use --log-level instead] Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -v --version Show the version and exit. -h --help Show this message and exit. Commands - All subcommands ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── admin Administrative commands db Database commands for app deploy Deploy app self Manage app [deprecated: Use admin commands] For more assistance, visit https://example.com/
Simple theme with red accents on object names.
export RICH_CLICK_THEME=red2-modernpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. Runtime options - Options specifying the runtime ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -e --environment [dev|staging|prod] [required] Environment to run in [env=APP_ENV] --env-file PATH .env file -r --retries INTEGER RANGE [0<=x<=10] Num retries for failed tasks -c --vcpu INTEGER RANGE [1<=x<=32] Num vCPUs [default=4] Logging options - Logging config options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -l --log-level [debug|info|warning|error] Log level [env=APP_LOG_LEVEL] [default=info] -C / -n --colors / --no-colors Whether to show colors in logs [default=colors] --log-format [TEXT] Log format [deprecated] -q --quiet / --no-quiet Print text [deprecated: use --log-level instead] Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -v --version Show the version and exit. -h --help Show this message and exit. Commands - All subcommands ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── admin Administrative commands db Database commands for app deploy Deploy app self Manage app [deprecated: Use admin commands] For more assistance, visit https://example.com/
Simple theme with green accents on section headers.
export RICH_CLICK_THEME=green1-modernpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. Runtime options - Options specifying the runtime ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -e --environment [dev|staging|prod] [required] Environment to run in [env=APP_ENV] --env-file PATH .env file -r --retries INTEGER RANGE [0<=x<=10] Num retries for failed tasks -c --vcpu INTEGER RANGE [1<=x<=32] Num vCPUs [default=4] Logging options - Logging config options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -l --log-level [debug|info|warning|error] Log level [env=APP_LOG_LEVEL] [default=info] -C / -n --colors / --no-colors Whether to show colors in logs [default=colors] --log-format [TEXT] Log format [deprecated] -q --quiet / --no-quiet Print text [deprecated: use --log-level instead] Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -v --version Show the version and exit. -h --help Show this message and exit. Commands - All subcommands ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── admin Administrative commands db Database commands for app deploy Deploy app self Manage app [deprecated: Use admin commands] For more assistance, visit https://example.com/
Simple theme with green accents on object names.
export RICH_CLICK_THEME=green2-modernpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. Runtime options - Options specifying the runtime ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -e --environment [dev|staging|prod] [required] Environment to run in [env=APP_ENV] --env-file PATH .env file -r --retries INTEGER RANGE [0<=x<=10] Num retries for failed tasks -c --vcpu INTEGER RANGE [1<=x<=32] Num vCPUs [default=4] Logging options - Logging config options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -l --log-level [debug|info|warning|error] Log level [env=APP_LOG_LEVEL] [default=info] -C / -n --colors / --no-colors Whether to show colors in logs [default=colors] --log-format [TEXT] Log format [deprecated] -q --quiet / --no-quiet Print text [deprecated: use --log-level instead] Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -v --version Show the version and exit. -h --help Show this message and exit. Commands - All subcommands ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── admin Administrative commands db Database commands for app deploy Deploy app self Manage app [deprecated: Use admin commands] For more assistance, visit https://example.com/
Simple theme with yellow accents on section headers.
export RICH_CLICK_THEME=yellow1-modernpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. Runtime options - Options specifying the runtime ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -e --environment [dev|staging|prod] [required] Environment to run in [env=APP_ENV] --env-file PATH .env file -r --retries INTEGER RANGE [0<=x<=10] Num retries for failed tasks -c --vcpu INTEGER RANGE [1<=x<=32] Num vCPUs [default=4] Logging options - Logging config options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -l --log-level [debug|info|warning|error] Log level [env=APP_LOG_LEVEL] [default=info] -C / -n --colors / --no-colors Whether to show colors in logs [default=colors] --log-format [TEXT] Log format [deprecated] -q --quiet / --no-quiet Print text [deprecated: use --log-level instead] Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -v --version Show the version and exit. -h --help Show this message and exit. Commands - All subcommands ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── admin Administrative commands db Database commands for app deploy Deploy app self Manage app [deprecated: Use admin commands] For more assistance, visit https://example.com/
Simple theme with yellow accents on object names.
export RICH_CLICK_THEME=yellow2-modernpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. Runtime options - Options specifying the runtime ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -e --environment [dev|staging|prod] [required] Environment to run in [env=APP_ENV] --env-file PATH .env file -r --retries INTEGER RANGE [0<=x<=10] Num retries for failed tasks -c --vcpu INTEGER RANGE [1<=x<=32] Num vCPUs [default=4] Logging options - Logging config options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -l --log-level [debug|info|warning|error] Log level [env=APP_LOG_LEVEL] [default=info] -C / -n --colors / --no-colors Whether to show colors in logs [default=colors] --log-format [TEXT] Log format [deprecated] -q --quiet / --no-quiet Print text [deprecated: use --log-level instead] Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -v --version Show the version and exit. -h --help Show this message and exit. Commands - All subcommands ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── admin Administrative commands db Database commands for app deploy Deploy app self Manage app [deprecated: Use admin commands] For more assistance, visit https://example.com/
Simple theme with blue accents on section headers.
export RICH_CLICK_THEME=blue1-modernpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. Runtime options - Options specifying the runtime ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -e --environment [dev|staging|prod] [required] Environment to run in [env=APP_ENV] --env-file PATH .env file -r --retries INTEGER RANGE [0<=x<=10] Num retries for failed tasks -c --vcpu INTEGER RANGE [1<=x<=32] Num vCPUs [default=4] Logging options - Logging config options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -l --log-level [debug|info|warning|error] Log level [env=APP_LOG_LEVEL] [default=info] -C / -n --colors / --no-colors Whether to show colors in logs [default=colors] --log-format [TEXT] Log format [deprecated] -q --quiet / --no-quiet Print text [deprecated: use --log-level instead] Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -v --version Show the version and exit. -h --help Show this message and exit. Commands - All subcommands ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── admin Administrative commands db Database commands for app deploy Deploy app self Manage app [deprecated: Use admin commands] For more assistance, visit https://example.com/
Simple theme with blue accents on object names.
export RICH_CLICK_THEME=blue2-modernpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. Runtime options - Options specifying the runtime ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -e --environment [dev|staging|prod] [required] Environment to run in [env=APP_ENV] --env-file PATH .env file -r --retries INTEGER RANGE [0<=x<=10] Num retries for failed tasks -c --vcpu INTEGER RANGE [1<=x<=32] Num vCPUs [default=4] Logging options - Logging config options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -l --log-level [debug|info|warning|error] Log level [env=APP_LOG_LEVEL] [default=info] -C / -n --colors / --no-colors Whether to show colors in logs [default=colors] --log-format [TEXT] Log format [deprecated] -q --quiet / --no-quiet Print text [deprecated: use --log-level instead] Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -v --version Show the version and exit. -h --help Show this message and exit. Commands - All subcommands ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── admin Administrative commands db Database commands for app deploy Deploy app self Manage app [deprecated: Use admin commands] For more assistance, visit https://example.com/
Simple theme with magenta accents on section headers.
export RICH_CLICK_THEME=magenta1-modernpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. Runtime options - Options specifying the runtime ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -e --environment [dev|staging|prod] [required] Environment to run in [env=APP_ENV] --env-file PATH .env file -r --retries INTEGER RANGE [0<=x<=10] Num retries for failed tasks -c --vcpu INTEGER RANGE [1<=x<=32] Num vCPUs [default=4] Logging options - Logging config options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -l --log-level [debug|info|warning|error] Log level [env=APP_LOG_LEVEL] [default=info] -C / -n --colors / --no-colors Whether to show colors in logs [default=colors] --log-format [TEXT] Log format [deprecated] -q --quiet / --no-quiet Print text [deprecated: use --log-level instead] Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -v --version Show the version and exit. -h --help Show this message and exit. Commands - All subcommands ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── admin Administrative commands db Database commands for app deploy Deploy app self Manage app [deprecated: Use admin commands] For more assistance, visit https://example.com/
Simple theme with magenta accents on object names.
export RICH_CLICK_THEME=magenta2-modernpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. Runtime options - Options specifying the runtime ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -e --environment [dev|staging|prod] [required] Environment to run in [env=APP_ENV] --env-file PATH .env file -r --retries INTEGER RANGE [0<=x<=10] Num retries for failed tasks -c --vcpu INTEGER RANGE [1<=x<=32] Num vCPUs [default=4] Logging options - Logging config options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -l --log-level [debug|info|warning|error] Log level [env=APP_LOG_LEVEL] [default=info] -C / -n --colors / --no-colors Whether to show colors in logs [default=colors] --log-format [TEXT] Log format [deprecated] -q --quiet / --no-quiet Print text [deprecated: use --log-level instead] Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -v --version Show the version and exit. -h --help Show this message and exit. Commands - All subcommands ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── admin Administrative commands db Database commands for app deploy Deploy app self Manage app [deprecated: Use admin commands] For more assistance, visit https://example.com/
Simple theme with cyan accents on section headers.
export RICH_CLICK_THEME=cyan1-modernpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. Runtime options - Options specifying the runtime ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -e --environment [dev|staging|prod] [required] Environment to run in [env=APP_ENV] --env-file PATH .env file -r --retries INTEGER RANGE [0<=x<=10] Num retries for failed tasks -c --vcpu INTEGER RANGE [1<=x<=32] Num vCPUs [default=4] Logging options - Logging config options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -l --log-level [debug|info|warning|error] Log level [env=APP_LOG_LEVEL] [default=info] -C / -n --colors / --no-colors Whether to show colors in logs [default=colors] --log-format [TEXT] Log format [deprecated] -q --quiet / --no-quiet Print text [deprecated: use --log-level instead] Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -v --version Show the version and exit. -h --help Show this message and exit. Commands - All subcommands ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── admin Administrative commands db Database commands for app deploy Deploy app self Manage app [deprecated: Use admin commands] For more assistance, visit https://example.com/
Simple theme with cyan accents on object names.
export RICH_CLICK_THEME=cyan2-modernpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. Runtime options - Options specifying the runtime ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -e --environment [dev|staging|prod] [required] Environment to run in [env=APP_ENV] --env-file PATH .env file -r --retries INTEGER RANGE [0<=x<=10] Num retries for failed tasks -c --vcpu INTEGER RANGE [1<=x<=32] Num vCPUs [default=4] Logging options - Logging config options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -l --log-level [debug|info|warning|error] Log level [env=APP_LOG_LEVEL] [default=info] -C / -n --colors / --no-colors Whether to show colors in logs [default=colors] --log-format [TEXT] Log format [deprecated] -q --quiet / --no-quiet Print text [deprecated: use --log-level instead] Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -v --version Show the version and exit. -h --help Show this message and exit. Commands - All subcommands ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── admin Administrative commands db Database commands for app deploy Deploy app self Manage app [deprecated: Use admin commands] For more assistance, visit https://example.com/
Monochromatic palettes
Section titled “Monochromatic palettes”The following palettes have zero color.
Monochromatic theme with no colors.
export RICH_CLICK_THEME=mono-boxpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ╭─ Runtime options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Options specifying the runtime │ │ * --environment -e [dev|staging|prod] Environment to run in [env var: APP_ENV] [required] │ │ --env-file PATH .env file │ │ --retries -r INTEGER RANGE [0<=x<=10] Num retries for failed tasks │ │ --vcpu -c INTEGER RANGE [1<=x<=32] Num vCPUs [default: 4] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Logging config options │ │ --log-level -l [debug|info|warning|error] Log level [env var: APP_LOG_LEVEL] [default: info] │ │ --colors / --no-colors -C / -n Whether to show colors in logs [default: colors] │ │ --log-format [TEXT] Log format [deprecated] │ │ --quiet / --no-quiet -q Print text [deprecated: use --log-level instead] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ --version -v Show the version and exit. │ │ --help -h Show this message and exit. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ All subcommands │ │ admin Administrative commands │ │ db Database commands for app │ │ deploy Deploy app │ │ self Manage app [deprecated: Use admin commands] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ For more assistance, visit https://example.com/
No style at all.
export RICH_CLICK_THEME=plain-boxpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. ╭─ Runtime options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Options specifying the runtime │ │ * --environment -e [dev|staging|prod] Environment to run in [env var: APP_ENV] [required] │ │ --env-file PATH .env file │ │ --retries -r INTEGER RANGE [0<=x<=10] Num retries for failed tasks │ │ --vcpu -c INTEGER RANGE [1<=x<=32] Num vCPUs [default: 4] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Logging options ────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Logging config options │ │ --log-level -l [debug|info|warning|error] Log level [env var: APP_LOG_LEVEL] [default: info] │ │ --colors / --no-colors -C / -n Whether to show colors in logs [default: colors] │ │ --log-format [TEXT] Log format [deprecated] │ │ --quiet / --no-quiet -q Print text [deprecated: use --log-level instead] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Misc. options ──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ --version -v Show the version and exit. │ │ --help -h Show this message and exit. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ All subcommands │ │ admin Administrative commands │ │ db Database commands for app │ │ deploy Deploy app │ │ self Manage app [deprecated: Use admin commands] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ For more assistance, visit https://example.com/
plain-slim
Of course, the most plain style of them all is plain-slim, which renders CLI help text in the most conventional way that rich-click can.
For fun, we’ve included it here!
(Or, maybe you really dislike rich-click’s styles and you want to add export RICH_CLICK_THEME=plain-slim to your .zshrc.
We won’t judge!)
export RICH_CLICK_THEME=plain-slimpython docs/code_snippets/themes/cli.py --help$ python cli.py --helpUsage: cli.py [OPTIONS] COMMAND [ARGS]... CLI for app This is a production-ready application. Runtime options: Options specifying the runtime -e --environment <dev|staging|prod> Environment to run in [required] [env: APP_ENV=] --env-file <PATH> .env file -r --retries <INTEGER RANGE> Num retries for failed tasks [range: 0<=x<=10] -c --vcpu <INTEGER RANGE> Num vCPUs [range: 1<=x<=32] [default=4] Logging options: Logging config options -l --log-level <debug|info|warning|error> Log level [default=info] [env: APP_LOG_LEVEL=] -C / -n --colors / --no-colors Whether to show colors in logs [default=colors] --log-format <TEXT> Log format [deprecated] -q --quiet / --no-quiet Print text [deprecated: use --log-level instead] Misc. options: -v --version Show the version and exit. -h --help Show this message and exit. Commands: All subcommands admin Administrative commands db Database commands for app deploy Deploy app self Manage app [deprecated: Use admin commands] For more assistance, visit https://example.com/
List all themes in command line
Section titled “List all themes in command line”Running rich-click --themes will provide help text that lists every theme available to you.
The command will also tell you which theme you currently have enabled.
Output of rich-click –themes
$ rich-click --themes╭─────────────────────────────────────────── How to use ───────────────────────────────────────────╮ │ │ │ Themes are an easy way to style a rich-click CLI. │ │ │ │ As an end-user of CLIs, you can set the RICH_CLICK_THEME= env var to style all rich-click CLIs │ │ you use. │ │ │ │ As a developer, you can add a theme to your CLI with one line of code: │ │ @click.rich_config({'theme': 'name'}). │ │ │ │ Themes consist of Color Palettes and Formats, which can be mixed and matched: The name of a │ │ full theme has the following schema: {color_palette}-{format}. │ │ │ │ For example, the forest-slim theme uses the forest color palette and the slim format. │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────── Local user setting ───────────────────────────────────────╮ │ │ │ RICH_CLICK_THEME is not set │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────── Color Palettes ─────────────────────────────────────────╮ │ │ │ Name Colors Description │ │ ────────────────────────────────────────────────────────────────────────────────────────────── │ │ * default ▓▓ ▓▓ ▓▓ (Default) Original rich-click colors │ │ │ │ solarized ▓▓ ▓▓ ▓▓ Bright, colorful, vibrant accents │ │ │ │ nord ▓▓ ▓▓ ▓▓ Many shades of cool colors │ │ │ │ nord_light ▓▓ ▓▓ ▓▓ Nord colors darkened for light backgrounds │ │ │ │ dracula ▓▓ ▓▓ ▓▓ Vibrant high-contrast dark theme │ │ │ │ dracula_light ▓▓ ▓▓ ▓▓ Alucard, the official light Dracula palette │ │ │ │ star ▓▓ ▓▓ ▓▓ Litestar official theme │ │ │ │ quartz ▓▓ ▓▓ ▓▓ Dark and radiant │ │ │ │ quartz2 ▓▓ ▓▓ ▓▓ Remix of 'quartz' with accents │ │ │ │ forest ▓▓ ▓▓ ▓▓ Earthy tones with analogous colors │ │ │ │ cargo ▓▓ ▓▓ ▓▓ Cargo CLI theme; legible and bold │ │ │ │ red1 ▓▓ ▓▓ ▓▓ Simple theme with red accents on section headers │ │ │ │ green1 ▓▓ ▓▓ ▓▓ Simple theme with green accents on section headers │ │ │ │ yellow1 ▓▓ ▓▓ ▓▓ Simple theme with yellow accents on section headers │ │ │ │ blue1 ▓▓ ▓▓ ▓▓ Simple theme with blue accents on section headers │ │ │ │ magenta1 ▓▓ ▓▓ ▓▓ Simple theme with magenta accents on section headers │ │ │ │ cyan1 ▓▓ ▓▓ ▓▓ Simple theme with cyan accents on section headers │ │ │ │ red2 ▓▓ ▓▓ ▓▓ Simple theme with red accents on object names │ │ │ │ green2 ▓▓ ▓▓ ▓▓ Simple theme with green accents on object names │ │ │ │ yellow2 ▓▓ ▓▓ ▓▓ Simple theme with yellow accents on object names │ │ │ │ blue2 ▓▓ ▓▓ ▓▓ Simple theme with blue accents on object names │ │ │ │ magenta2 ▓▓ ▓▓ ▓▓ Simple theme with magenta accents on object names │ │ │ │ cyan2 ▓▓ ▓▓ ▓▓ Simple theme with cyan accents on object names │ │ │ │ mono ▓▓ ▓▓ Monochromatic theme with no colors │ │ │ │ plain ▓▓ No style at all │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────── Formats ─────────────────────────────────────────────╮ │ │ │ Name Description │ │ ────────────────────────────────────────────────────────────────────────────────────────────── │ │ * box (Default) Original rich-click format with boxes │ │ │ │ square Original rich-click format with square boxes │ │ │ │ nu Great balance of compactness, legibility, and style │ │ │ │ slim Simple, classic, no-fuss CLI format │ │ │ │ modern Beautiful modern look │ │ │ │ robo Spacious with sharp corners │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯