sfdx auth:device:login

Authorize an org using a device code

Options

NameDescription
--jsonFormat output as json
--loglevel <loglevel>Logging level for this command invocation
-i, --clientid <clientid>OAuth client ID (sometimes called the consumer key)
-r, --instanceurl <instanceurl>The login URL of the instance the org lives on
-d, --setdefaultdevhubusernameSet the authenticated org as the default dev hub org for scratch org creation
-s, --setdefaultusernameSet the authenticated org as the default username that all commands run against
-a, --setalias <setalias>Set an alias for the authenticated org