Crates.io | steamguard-cli |
lib.rs | steamguard-cli |
version | 0.14.2 |
source | src |
created_at | 2021-07-30 03:20:14.353505 |
updated_at | 2024-08-05 14:28:37.560492 |
description | A command line utility to generate Steam 2FA codes and respond to confirmations. |
homepage | |
repository | https://github.com/dyc3/steamguard-cli |
max_upload_size | |
id | 429129 |
size | 314,443 |
A command line utility for setting up and using Steam Mobile Authenticator (AKA Steam 2FA). It can also be used to respond to trade, market, and any other steam mobile confirmations that you would normally get in the app.
The only legitimate place to download steamguard-cli binaries is through this repo's releases, or by any package manager that is linked in this document.
This utility is effectively in beta. Use this software at your own risk. Make sure to back up your maFiles regularly, and make sure to actually write down your revocation code. If you lose both of these, we can't help you, your only recourse is to beg Steam support.
If you have no idea what the rest of this document is talking about, go read the quickstart.
maFiles
formatIf you have the Rust toolchain installed:
cargo install steamguard-cli
Arch-based systems can install from the AUR:
Otherwise, you can download binaries from the releases.
cargo build --release
steamguard-cli
looks for your maFiles/manifest.json
in at these paths, in this order:
Linux:
~/.config/steamguard-cli/maFiles/
~/maFiles/
Windows:
%APPDATA%\Roaming\steamguard-cli\maFiles\
%USERPROFILE%\maFiles\
Your maFiles
can be created with or imported from Steam Desktop Authenticator. You can create maFiles
with steamguard-cli using the setup
action (steamguard setup
).
REMEMBER TO MAKE BACKUPS OF YOUR maFiles
, AND TO WRITE DOWN YOUR RECOVERY CODE!
Full helptext can be displayed with:
steamguard --help
Generate and copy a new code to clipboard:
steamguard | xclip -selection clipboard
It's possible to import your 2FA secret into other applications. This is useful if you want to use a password manager to generate your 2FA codes, like KeeWeb.
To make this easy, steamguard-cli can generate a QR code for your 2FA secret. You can then scan this QR code with your password manager.
steamguard qr # print QR code for the first account in your maFiles
steamguard -u <account name> qr # print QR code for a specific account
There are some applications that do not generate correct 2fa codes from the secret, so do not use them:
By contributing code to this project, you give me and any future maintainers a non-exclusive transferable license to use that code for this project, including permission to modify, redistribute, and relicense it.
steamguard-cli
, the command line program is licensed under GPLv3.
steamguard
, the library that is used by steamguard-cli
is dual licensed under MIT or Apache 2.0, at your option.