mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
510 B
Plaintext
26 lines
510 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# qr
|
|
|
|
> Generate QR codes in the terminal with ANSI VT-100 escape codes.
|
|
> 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}}`
|