sfdx force:user:password:generate

Generate a password for scratch org users

Options

NameDescription
--jsonFormat output as json
--loglevel <loglevel>Logging level for this command invocation
-v, --targetdevhubusername <targetdevhubusername>Username or alias for the dev hub org; overrides default dev hub org
-u, --targetusername <targetusername>Username or alias for the target org; overrides default target org
--apiversion <apiversion>Override the api version used for api requests made by this command
-o, --onbehalfof <onbehalfof>Comma-separated list of usernames or aliases to assign the password to
-l, --length <length>Number of characters in the generated password; valid values are between 8 and 1000
-c, --complexity <complexity>Level of password complexity or strength; the higher the value, the stronger the password