| name | qrcode-agent-cli |
|---|---|
| description | Generate QR codes as terminal text or PNG images |
qrcode-agent-cli generates QR codes from inline text content. It can print a QR code
directly in the terminal as Unicode blocks or save a PNG image file, while also
exposing structured help, runtime-path discovery, and a persisted Active
Context for default render settings.
- Rust and Cargo are installed when building from source
- The caller can execute the
qrcode-agent-clibinary from a shell or an agent tool - The caller has write access to the target output path when using image mode
- GitHub Release installs use
scripts/install-current-release.shfrom a checked-out release tag
Canonical installed invocation:
qrcode-agent-cli run "https://example.com" --render textLocal development invocation:
cargo run -- run "https://example.com" --render image --output ./example.pngRelease-binary invocation after building:
./target/release/qrcode-agent-cli run "hello" --render textGitHub Release installation after checking out a tagged release:
./scripts/install-current-release.sh 0.1.0runaccepts inline text content as the positionalCONTENTargumentrun --render text|imagechooses terminal or PNG outputrun --output <FILE>selects the PNG destination in image moderun --size <PIXELS>sets the PNG size in image moderun --format yaml|json|tomlchooses the structured response format for non-text responses and for all structured errorscontext setpersists defaultrender,output, andsizevalues for later invocations
run --render textwrites the QR code itself to stdout as terminal textrun --render imagewrites a PNG file and returns structured metadata on stdoutpaths,context show,context set,context clear, andhelpreturn structured YAML, JSON, or TOML on stdout--helpalways stays plain-text for people and shells- Repo-native GitHub Release assets include
release-evidence.jsonalongside platform archives for verified installs
- Leaf-command validation failures return structured stderr in the selected format
- Structured errors include at least
codeandmessage - Image-mode failures also describe the path or filesystem operation that failed when available
qrcode-agent-cli run "https://openai.com" --render text
qrcode-agent-cli run "hello png" --render image --output ./hello.png --format json
qrcode-agent-cli help run --format yaml
qrcode-agent-cli paths --format toml
qrcode-agent-cli context set --render image --size 512 --format json
qrcode-agent-cli context show --format yaml