# apps/print-agent Runs on the computer next to the printers (macOS or Linux with CUPS, or Windows with the printer's driver). It pairs with PhotoReport once, tells the server which printers it sees, takes print jobs for printers loaded with the job's paper, prints them and reports back. Jobs from a station that dies mid-print go back to the queue after five minutes. ```sh pnpm --filter @photoreport/print-agent build node apps/print-agent/dist/cli.js pair ABCD2345 --api https://api.photoreport.pt # code from Impressão > Estações node apps/print-agent/dist/cli.js printers # what CUPS sees node apps/print-agent/dist/cli.js run ``` - Paper: in the app, tick the sizes loaded in each printer (15x20 by default). CUPS media names for dye-sub printers (Gutenprint, Mitsubishi CP-D90DW): 10x15 `w288h432`, 15x20 `w432h576`, 20x30 `w576h864`; override with `"media": {"15x20": "..."}` in the config file (`~/.config/photoreport-print-agent/config.json`). - `--folder