gh auth login
to authenticate with your GitHub account.gh auth status
to confirm that you are logged in.gh auth 2fa status
to check the status of your two-factor authentication.gh auth 2fa enable
to enable it.gh auth 2fa status
again to confirm that it is enabled.