All Posts programming qr: generate QR codes in the terminal

qr: generate QR codes in the terminal

ยท 208 words ยท 1 minute read

What is qr ? ๐Ÿ”—

qr is a tool to generate QR codes in the terminal with ANSI VT-100 escape codes.

More information: https://manned.org/qr .

Usage ๐Ÿ”—

Generate a QR code:

qr "data"

Specify the error correction level (defaults to M):

qr --error-correction L|M|Q|H "data"

Generate a QR code from the output of another command:

command | qr

Save the QR code as a PNG image:

qr "data" > path/to/file.png

qrencode ๐Ÿ”—

QR Code generator. Supports PNG and EPS.

More information: https://manned.org/qrencode .

Convert a string to a QR code and save to an output file:

qrencode [-o|--output] path/to/output_file.png string

Convert an input file to a QR code and save to an output file:

qrencode [-o|--output] path/to/output_file.png [-r|--read-from] path/to/input_file

Convert a string to a QR code and print it in terminal:

qrencode [-t|--type] ansiutf8 string

Convert input from pipe to a QR code and print it in terminal:

echo string | qrencode [-t|--type] ansiutf8

I hope you enjoyed reading this post as much as I enjoyed writing it. If you know a person who can benefit from this information, send them a link of this post. If you want to get notified about new posts, follow me on YouTube , Twitter (x) , LinkedIn , and GitHub .