{"repo":"Textualize/rich-cli","free":true,"listed":false,"github":"https://github.com/Textualize/rich-cli","clone":"git clone https://github.com/Textualize/rich-cli.git","description":"Rich-cli is a command line toolbox for fancy output in the terminal","language":"Python","stars":3710,"topics":["rich","terminal","terminal-colors","syntax-highlighting","markdown"],"license":"MIT","category":"cli-tools","readme_excerpt":"Rich-CLI Rich-CLI is a command line toolbox for fancy output in the terminal, built with Rich. Use the rich command to highlight a variety of file types in the terminal, with specialized rendering for Markdown and JSON files. Additionally you can markup and format text from the command line. Installation There are a few options for installing Rich-CLI. Windows / Linux You can install Rich-CLI with pipx. MacOS You can install Rich-CLI with Homebrew. Universal Rich-CLI may be installed as a Python package, either using pip : Or using conda or mamba : Rich command Once installed you should have the rich command in your path. Run the following to see usage / help: Syntax highlighting To syntax highlight a file enter rich followed by a path. Many file formats are supported. Add the --line-number or -n switch to enable line numbers. Add --guides or -g to enable indentation guides. You can specify a theme with --theme . You can set the default theme via the RICH THEME environment variable. So the following is equivalent to the above command: By default, rich will wrap lines if they don't fit within the available width. You can disable this behavior with --no-wrap . Rich will try to deduce the format of the via from the filename. If you want to override the auto-detected lexer you can explicitly set it with the --lexer or -x switch. Markdown You can request markdown rendering by adding the --markdown switch or -m . If the file ends with .md markdown will be auto-detected. If your ter","default_branch":null,"files":null,"tree":[],"storefront":"/r/Textualize","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Textualize/rich-cli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}