| name | charm-glow |
| description | View and browse markdown files in the terminal with glow - CLI and TUI modes, pager, word wrapping, styles. Use when viewing markdown in the terminal, glow, or browsing markdown files from the command line. NOT for rendering markdown programmatically in Go (use glamour). |
charm-glow
glow renders markdown in the terminal with styled output. Has two modes: TUI (browse/stash) and CLI (direct render).
CLI Usage
glow README.md
echo "# Hello" | glow -
glow github.com/charmbracelet/glow
glow https://host.tld/file.md
Pager Mode
glow -p README.md
Word Wrap
glow -w 80 README.md
Styles
glow README.md
glow -s dark README.md
glow -s light README.md
glow -s mystyle.json README.md
Styles come from glamour. Custom styles are JSON files following glamour's schema.
TUI Mode
Run glow with no args to open the TUI. It scans the current directory (or git repo root) for .md files.
- Navigate with arrow keys / vim keys
- Open file to enter pager, press
? for hotkeys
- Pager uses
less-compatible keybindings
Config File
glow config
Config lives at platform default path (check glow --help). Example glow.yml:
style: "auto"
pager: true
width: 80
mouse: true
all: false
showLineNumbers: false
preserveNewLines: false
Key Flags Summary
| Flag | Description |
|---|
-s | Style: dark, light, auto, or path to JSON |
-w | Word wrap width |
-p | Enable pager |
Notes
- Stash feature (syncing to Charm Cloud) was removed in v2
glow --help lists config file location per platform