The CLI tool allows you to generate QR codes from command line arguments or via standard input (stdin).
Basic usage:
qrterminal <URL_OR_TEXT>
With error correction level:
Use the -l flag to specify the level (e.g., M for medium).
qrterminal <URL_OR_TEXT> -l M
Using Docker:
docker run --rm ghcr.io/mdp/qrterminal:latest '<URL_OR_TEXT>'
Piping text via stdin:
cat <file> | qrterminal
Piping text via Docker stdin:
cat <file> | docker run --rm -i ghcr.io/mdp/qrterminal:latest
# Print a basic QR code
qrterminal https://github.com/mdp/qrterminal
# Using medium error correction
qrterminal https://github.com/mdp/qrterminal -l M
# Piping text from a file
cat wireguard_peer.conf | qrterminal