I’ll introduce the qrencode command for generating QR codes.
Background: Want to Generate QR Codes Safely
While there are several web services that can create QR codes for free, I had some resistance to entering various information on such sites.
So I decided to set up an environment where I could generate QR codes from the CLI to create QR codes safely.
Installing qrencode
Installing qrencode [CentOS Edition]
yum install -y qrencode
Installing qrencode [macOS Edition]
brew install qrencode
? qrencode — Homebrew Formulae
Installing qrencode [Ubuntu Edition]
apt install -y qrencode
How to Use qrencode
Output QR Code to CLI
qrencode -t ansi "https://example.com/"
Output QR Code to PNG Image File
qrencode -o qrcode.png "https://example.com/"
Output QR Code from .txt File Contents to PNG Image File
qrencode -r input.txt -o qrcode.png
That’s all from the Gemba, where I want to safely generate QR codes with the qrencode command.