This package allowed me to generate the code from the CLI using a pure Python solution https://pypi.org/project/qrcode/