No description
Find a file
2023-06-29 17:50:14 -04:00
.github CI: fix rust cache collisions messing up the windows build (#249) 2023-06-29 14:51:41 +00:00
.vscode add some unit tests (#234) 2023-06-26 16:44:14 +00:00
docs fix typo in quickstart 2023-06-24 15:52:36 -04:00
scripts adjust release script 2023-06-29 17:50:14 -04:00
src fix typo in update available text (#252) 2023-06-29 21:16:02 +00:00
steamguard update ConfirmationType enum (#250) 2023-06-29 19:35:14 +00:00
.gitignore add check-aur.sh to check if the aur package works 2022-01-15 11:40:25 -05:00
Cargo.lock Bump steamguard v0.9.2, steamguard-cli v0.9.4 2023-06-26 20:22:31 -04:00
Cargo.toml Bump steamguard v0.9.2, steamguard-cli v0.9.4 2023-06-26 20:22:31 -04:00
LICENSE licensing and stuff 2021-08-25 08:36:02 -04:00
PKGBUILD update pkgbuild 2023-06-23 15:41:04 -04:00
README.md add quickstart document (#216) 2023-06-24 09:47:25 -04:00
rustfmt.toml add rustfmt.toml and run cargo fmt 2021-08-08 12:54:46 -04:00

steamguard-cli

Lint, Build, Test AUR Tester

A command line utility for setting up and using Steam Mobile Authenticator (AKA Steam 2FA). It can also be used to respond to trade and market confirmations.

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.

Disclaimer

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.

Quickstart

If you have no idea what the rest of this document is talking about, go read the quickstart.

Install

If you have the Rust toolchain installed:

cargo install steamguard-cli

Arch-based systems can install from the AUR:

  • For steamguard-cli-git
  • Non-git release is not officially provided. Please open an issue if you would like to help set that up.

Otherwise, you can download binaries from the releases.

Building From Source

cargo build --release

Usage

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

One Liners

Generate and copy a new code to clipboard:

steamguard | xclip -selection clipboard

Importing 2FA Secret Into Other Applications

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:

  • Google Authenticator
  • Authy

Contributing

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.

License

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.

Used By