Glow Markdown in the terminal
Light · Postcard
102 × 152 mm · PDF
Dark · Postcard
102 × 152 mm · PDF
Ink saver · Postcard
102 × 152 mm · PDF
Light · A4 landscape
297 × 210 mm · PDF
Dark · A4 landscape
297 × 210 mm · PDF
Ink saver · A4 landscape
297 × 210 mm · PDF
Light · A3 landscape
420 × 297 mm · PDF
Dark · A3 landscape
420 × 297 mm · PDF
Ink saver · A3 landscape
420 × 297 mm · PDF
Start here
glowglow <file.md>
glow -p <file.md>
glow <owner>/<repo>
glow <url>
<cmd> | glow -
glow -s dark?Concepts
- Source file, stdin, repo, URL
- Styled text -s, -w
- Terminal or pager less -r by default
Rendering
glowglow <file.md>
glow <dir>
<cmd> | glow -
glow <owner>/<repo>
glow github.com/<owner>/<repo>
glow https://<host>/<file>.md
glow -tglow --versionglow --helpOutput options
glow -p <file.md>
glow -s <style>
glow -s darkglow -s lightglow -s <file>.json
glow -w <cols>
glow -nglow -aglow -lglow -mKeys (browser and viewer)
j / kEnter/Escg / GTab / Shift+Tab
eFf / b?qd / ucrConfig and environment
glow configPAGER=<cmd> glow -p <file.md>
GLOW_STYLE=<style>
GLOW_WIDTH=<cols>
glow completion <shell>
glow man| Key | Effect |
|---|---|
style |
default style (auto) |
width |
wrap width |
pager |
always use the pager |
tui |
always open the TUI |
showLineNumbers |
line numbers in TUI |
preserveNewLines |
keep newlines |
Recipes
glow -p README.mdglow -p -w 80 docs/guide.md
git show HEAD:README.md | glow -curl -s https://<host>/notes.md | glow -
glow -s light README.mdglow -s ./mytheme.json README.md
cd <repo>glow docs



