A simple CLI tool to encode text into a QR code image and decode text from a QR code image.
- Encode any text into a QR code and save it as a PNG image.
- Decode text from an existing QR code PNG image.
- Minimal and easy-to-use interface.
# Clone the repository
$ git clone https://github.com/fitims/qrcli.git
# Move into the project directory
$ cd qrcli
# Build the binary (example for Go)
$ go build -o qrcliOr install via Go:
$ go install github.com/fitims/qrcli@latestEncode a string into a QR code PNG image.
$ qrcli encode -t "Hello, World!" -o output.pngOptions:
-t, --text: The text you want to encode.-o, --output: The path to save the generated QR code PNG image.
Decode text from a QR code PNG image.
$ qrcli decode -i input.pngOptions:
-i, --input: The path to the PNG image containing the QR code.
$ qrcli encode -t "https://example.com" -o website_qr.pngCreates a QR code pointing to https://example.com saved as website_qr.png.
$ qrcli decode -i website_qr.pngOutputs:
https://example.com
- Go 1.24+
- Libraries for QR code generation and decoding (e.g.,
github.com/skip2/go-qrcode,github.com/caiguanhao/readqr)
MIT License. See LICENSE for more information.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Created by Your Name.