A Python implementation of Mathematica-Keygen-Mechanism that runs in the command line.
Use the --auto flag to automatically fetch MathID, generate keys and perform activation. Ideal for volume activation.
python keygen.py --auto
Tested only on Mathematica 14.1.0. Use at your own risk.