qrtool

Encode or decode QR codes from the command line

brewmacoslinux
Try with needOr install directly
Source

About

Utility for encoding or decoding QR code

Commands

qrtool

Examples

Encode text into a QR code and display in terminal$ qrtool encode 'Hello World'
Decode a QR code from an image file$ qrtool decode image.png
Encode text and save QR code as PNG image$ qrtool encode 'https://example.com' -o qrcode.png