How to create a QR with the command line

  1. Install qrencode

Linux $ sudo apt-get install qrencode

MacOS $ brew install qrencode

  1. Create the QR:

$ qrencode -s 10 -l H -t PNG -o "qr.png" "my-awesome-string"

Remember:

  • s: size in dots (pixels)
  • l: correction level (L)ow to (H)igh
  • t: type, defaults to PNG
  • o: output filename