HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

qr — Generate QR codes in the terminal with ANSI VT-100 escape codes. See also: `qrencode`. More informat

Submitted by: @import:tldr-pages··
0
Viewed 0 times
theterminalcommandqrcodescliwithgenerate

Problem

How to use the qr command: Generate QR codes in the terminal with ANSI VT-100 escape codes. See also: qrencode. More information: <https://manned.org/qr>.

Solution

qr — Generate QR codes in the terminal with ANSI VT-100 escape codes. See also: qrencode. More information: <https://manned.org/qr>.

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}}

Code Snippets

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}}

Context

tldr-pages: common/qr

Revisions (0)

No revisions yet.