Auth

Commands to authenticate to Dataverse.

Parameters

Parameter Name Description Example
clear Clears all the authentication profiles created on the local machine. This command has no arguments. pac auth clear
create Creates the authentication profile for your organization by passing the url parameter. Shows AAD dialog if sign in credentials are not specified, and has the following arguments:
  • name: The name to give to this auth profile, maximum 12 characters (alias: -n).
  • kind: Kind of auth profile, defaults to Dataverse (alias: -k).
  • url: Resource URL to connect to (alias: -u).
  • username: Optional: Username to authenticate with (alias: -un).
  • password: Optional: Password to authenticate with (alias: -p).
  • applicationId: Optional: Application ID to authenticate with (alias: -id).
  • clientSecret: Optional: Client secret to authenticate with (alias: -cs).
  • tenant: Optional: Tenant ID if using app id and client secret (alias: -t).
  • cloud: Optional: Cloud instance to authenticate with. Values: Public, Tip1, Tip2, UsGov, UsGovHigh, UsGovDod (alias: -ci).
pac auth create --url https://Myorg.crm.dynamics.com
delete Deletes the authentication profile created by passing the index parameter.
It has the following arguments:
  • index: The index of the profile to be deleted (alias: -i).
  • name: The name of the profile to be deleted (alias: -n).
pac auth delete --index 2
list Provides the list of authentication profiles stored on current computer. This command has no arguments. pac auth list
select Provides a way to switch between previously created authentication profiles by passing the index parameter.
It has the following arguments:
  • index: The index of the profile to be active (alias: -i).
  • name: The name of the profile to be active (alias: -n).
pac auth select --index 2

See also

Power Apps component framework overview

What is Microsoft Power Platform CLI