Command line disable Two Factor Authentication

Yes, you can do this by updating the enforce_second_factor site setting to “no”. Enter the rails console and run:

 SiteSetting.enforce_second_factor = "no"

The available options for that setting are “no”, “staff”, and “all”.