Examples (7)
Display a file with syntax highlighting
rich path/to/file.pyAdd line numbers, and indentation guides
rich path/to/file.py --line-numbers --guidesApply a theme
rich path/to/file.py --theme monokaiDisplay a file in an interactive pager
rich path/to/file.py --pagerDisplay contents from a URL
rich https://raw.githubusercontent.com/Textualize/rich-cli/main/README.md --markdown --pagerExport a file as HTML
rich path/to/file.md --export-html path/to/file.htmlDisplay text with formatting tags, custom alignment, and line width
rich --print "Hello [green on black]Stylized[/green on black] [bold]World[/bold]" --left|center|right --width 10made by @shridhargupta | data from tldr-pages