pac auth
Manage how you authenticate to various services
Commands
| Command | Description |
|---|---|
| pac auth clear | Clear all authentication profiles stored on this computer |
| pac auth create | Create and store authentication profiles on this computer |
| pac auth delete | Delete a particular authentication profile |
| pac auth list | List the authentication profiles stored on this computer |
| pac auth name | Name or rename an existing authentication profile |
| pac auth select | Select which authentication profile should be active |
| pac auth update | Update name or target environment of an existing authentication profile |
pac auth clear
Clear all authentication profiles stored on this computer
pac auth create
Create and store authentication profiles on this computer
Example
pac auth create --url https://myorg.crm.dynamics.com
Optional Parameters
--applicationId -id
Optional: The application id to authenticate with
--clientSecret -cs
Optional: The client secret to authenticate with
--cloud -ci
Optional: The cloud instance to authenticate with
Use one of these values:
PublicUsGovUsGovHighUsGovDodMooncake
--deviceCode -dc
Use the AAD DeviceCode flow for interactive login.
This parameter requires no value. It is a switch.
--environment -env
Default environment (id, url, unique name or partial name)
--kind -k
Deprecated: This parameter will be ignored.
--name -n
The name you want to give to this authentication profile (maximum 12 characters)
Note: The length of the name should be between 1 and 30
--password -p
Optional: The password to authenticate with
--tenant -t
Tenant id if using application id & secret.
--url -u
The resource URL to connect to
--username -un
Optional: The username to authenticate with; shows AAD dialog if not specified
pac auth delete
Delete a particular authentication profile
Example
pac auth delete --index 2
Optional Parameters
--index -i
The index of the profile to be deleted
Note: The value must be a positive integer
--name -n
The name of the profile to be active
Note: The length of the name should be between 1 and 30
pac auth list
List the authentication profiles stored on this computer
pac auth name
Name or rename an existing authentication profile
Required Parameters
--index -i
The index of the profile to be named/renamed
Note: The value must be a positive integer
--name -n
The name you want to give to this authentication profile (maximum 12 characters)
Note: The length of the name should be between 1 and 30
pac auth select
Select which authentication profile should be active
Example
pac auth select --index 2
Optional Parameters
--index -i
The index of the profile to be active
Note: The value must be a positive integer
--name -n
The name of the profile to be active
Note: The length of the name should be between 1 and 30
pac auth update
Update name or target environment of an existing authentication profile
Required Parameters
--index -i
The index of the profile to be named/renamed
Note: The value must be a positive integer
Optional Parameters
--environment -env
Default environment (id, url, unique name or partial name)
--name -n
The name you want to give to this authentication profile (maximum 12 characters)
See also
Microsoft Power Platform CLI Command Groups
Microsoft Power Platform CLI overview
Зворотний зв’язок
Надіслати й переглянути відгук про