Print photos as newspaper pages, greeting cards and web articles as magazine pages, and puzzles you can check once filled in, with prt: the photo-booth, greeting-card, article-print, letter-gazette and puzzle-check skills, and the prt MCP server for printer status, ink, page previews and printing.
Check ink, paper and alerts, run nozzle checks and head cleaning, print and scan on network printers, and print photos and web articles as newspaper and magazine pages, from a scriptable CLI or a full-screen TUI.
Install
uv tool install printer-cli
Requires Python 3.11+. Puts prt on your PATH (printer-cli works too). Other methods: Install options.
Quick start
Check a printer's ink, paper and alerts. No printer handy? The built-in demo printer replays a real Epson XP-6000:
prt -p demo status
╭─┐EPSON XP-6000 Series · office┌──────────────────────────────────────────╮
│ ● idle firmware 20.50.NU30Q6 · up 4h02m │
├──────────────────────────────────────────────────────────────────────────┤
│ ink │
│ Photo Black ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■···· 92% │
│ Cyan ········································ 1% ✗ replace │
│ Magenta ········································ 1% ✗ replace │
│ Yellow ■■■■···································· 12% ▲ low │
│ Black ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■····· 89% │
├──────────────────────────────────────────────────────────────────────────┤
│ paper main A4 ✓ photo 4×6 ✓ disc Disc ✓ (levels not reported) │
│ waste ▲ almost full — service soon │
╰─┘4 alerts · checked 17:42└───────────────────────────────────────────────╯
It started because the Epson XP-6000's web dashboard stopped working. printer-cli talks to the printer directly over standard protocols (IPP, eSCL, SNMP, plus Epson's ESC/P2 remote mode for maintenance). It works with most AirPrint/Mopria printers from any brand, and you can manage several printers from one place.
Use your own printer
prt discover # find printers on the LAN and save new ones
prt printers default xp-6000 # pick the default when several were saved
prt status # ink, paper, alerts
prt tui # full-screen dashboard
Every command also works against the built-in replay: prt -p demo status, prt -p demo tui.
Printers that discover can't see (another subnet, mDNS blocked) can be added by hand. prt list then shows which saved printers answer (here office points at the demo printer):
prt discover --wait 5 # listen longer on a busy network
prt printers add pantum 192.168.1.80 --driver ipp # save a printer by host or IP
prt printers remove pantum
prt list