Skip to main content

tcb env login get

Shows the login policy of the current environment: login method toggles, SMS verification settings, MFA configuration, and password update policy.

Usage​

tcb env login get -e <envId>

Flags​

FlagRequiredDescriptionDefault
-e, --env-id <envId>YesEnvironment ID—

Example​

# Show the login policy
tcb env login get -e env-xxx

# Output in JSON format
tcb env login get -e env-xxx --json

Output fields​

FieldDescription
Login Config
EmailLoginEmail login toggle
AnonymousLoginAnonymous login toggle
UserNameLoginUsername-password login toggle
PhoneNumberLoginPhone number SMS login toggle
SmsVerificationConfig
TypeSMS channel type
NameCustom APIs data source name
MethodSMS sending method
SmsDayLimitDaily sending limit
MfaConfig
OnWhether MFA is enabled
SmsWhether SMS MFA is enabled
EmailWhether email MFA is enabled
RequiredBindPhoneWhether phone binding is required
PwdUpdateStrategy
FirstLoginUpdateForce password change on first login
PeriodUpdateWhether periodic password change is enabled
PeriodValuePassword change period value
PeriodTypePassword change period unit
Versions

tcb env login get has been available since v3.1.0 and replaces the deprecated tcb env login list.