Guides
- RubyGems Basics
- What is a gem?
- Make your own gem
- Gems with Extensions
- Name your gem
- Publishing your gem
- Security Practices
- Managing owners using UI
- Removing a Published gem
- SSL Certificate Update
- Patterns
- Specification Reference
- Command Reference
- RubyGems.org API
- RubyGems.org API V2.0
- RubyGems.org Compact Index API
- RubyGems.org rate limits
- API key scopes
- Run your own gem server
- Setting up multi-factor authentication
- Using multi-factor authentication in command line
- MFA requirement opt in
- Using S3 as gem source
- Resources
- Contributing to RubyGems
- Frequently Asked Questions
- Plugins
- Common Vulnerabilities and Exposures
- Releasing RubyGems
- Trusted Publishing
- Organizations
- Credits
How to use multi-factor authentication with gem CLI.
Multi-factor authentication (MFA) greatly increases the security of your account. RubyGems currently requires that owners of any gem with more than 180 million cumulative downloads must enable MFA.
You may enable MFA using WebAuthn or using one-time passwords (OTP).