rich-cli

raw JSON →
1.8.1 verified Fri May 01 auth: no python

Command-line tool that uses the Rich library to pretty-print files (Markdown, CSV, JSON, Python source) with syntax highlighting, tables, and SVG export. Current version 1.8.1. Released infrequently; stable but lightly maintained.

pip install rich-cli
error UserWarning: The parameter -j is used more than once.
cause Both `--json` and `--emoji` shared the short flag `-j` prior to v1.8.1.
fix
Upgrade to rich-cli>=1.8.1 and use -J for JSON, -j for emoji.
deprecated rich-cli has not had a release since August 2022. It may not work with newer versions of Rich or Click.
fix Consider using the `rich` library directly or an alternative like `glow` or `mdcat`.
gotcha The `-j` short flag was removed in v1.8.1 for `--json`. Use `-J` instead.
fix Use `-J` or `--json` for JSON mode.

Preview a Markdown file in the terminal.

# Render a Markdown file with syntax highlighting
rich-cli README.md