Skip to content

Home

rich-gradient-cli

gradient prints text, files, URLs and stdin in your terminal with a color gradient. It is the command-line tool for rich-gradient and works like rich-cli: give it something to show and it picks how to render it.

uv tool install rich-gradient-cli
gradient --colors 'red,#ff9900,#ffff00,lime,cyan' -s bold 'Hello gradient'

text

How it works

  • One command. Everything is gradient [OPTIONS] [PATH,TEXT,URL, or '-']. There are no subcommands.
  • Automatic rendering. The file extension decides how a file is shown: Markdown, reStructuredText, a notebook, JSON, a CSV table, or syntax-highlighted code. A mode flag such as --markdown or --tree overrides it.
  • Familiar flags. Layout, styling and export options use the same short flags as rich-cli.
  • Gradients everywhere. --colors, --bgcolors, --rainbow and --animate work with every renderable.

Next steps

  • Usage installs the tool and walks through an example of each renderable.
  • Options lists every flag, with a screenshot of each one.
  • API documents the Python modules behind the command.