diff --git a/README.md b/README.md index b2be360a1f4e004bd5524b5dde33eb92b1e73606..371d9b15d4251cf7d064cbdb8b864ff401359b76 100644 --- a/README.md +++ b/README.md @@ -20,18 +20,16 @@ Launch a Python shell, e.g., using: ```bash source venv/bin/activate -python3 +python3 main.py -e ``` -Within the shell, type: +This will only store the token locally in the secret storage, with minimal validation. +To facilitate scripting, you can also pass the token as a quoted (!) string to the script, i.e like that: -```python -from main import enroll_token -enroll_token("otpauth://totp/...") # replace this with the URL you've gotten from the 2FA enrollment system +```bash +python3 main.py -e "otpauth://totp/..." ``` -This will only store the token locally in the secret storage, without any validation whatsoever. - ## Get token ```bash