pac env
Work with your Dataverse organization.
Note
With pac cli version 1.32, the pac org
command was changed to pac env
. org
will continue to work, but we recommend using env
going forward.
Commands
Command | Description |
---|---|
pac env fetch | Performs FetchXML query against Dataverse |
pac env list | Lists all of the Dataverse organizations the user has access to |
pac env list-settings | List environment settings |
pac env select | Select default organization for current authentication profile. |
pac env update-settings | Update environment settings |
pac env who | Displays information about the current Dataverse organization. |
pac env fetch
Performs FetchXML query against Dataverse
Optional Parameters for env fetch
--environment
-env
Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
--xml
-x
FetchXML query to run
--xmlFile
-xf
File with FetchXML query to run
pac env list
Lists all of the Dataverse organizations the user has access to
Example
pac env list --filter myenv
The filter parameter is a regular expression based filter.
Optional Parameters for env list
--filter
-f
Show only environments containing filter criteria.
pac env list-settings
List environment settings
Optional Parameters for env list-settings
--environment
-env
Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
--filter
-f
Show only settings containing filter criteria
pac env select
Select default organization for current authentication profile.
Examples
The following examples show the use of the pac env select command.
Select env by using environment URL
This example shows how to select an env by using an environment URL.
pac env select --environment "https://contosotest.crm.dynamics.com"
Select env by using environment ID
This example shows how to select an env by using an environment ID.
pac env select --environment 00000000-0000-0000-0000-000000000000
Optional Parameters for env select
--environment
-env
Default environment (ID, url, unique name, or partial name).
pac env update-settings
Update environment settings
Required Parameters for env update-settings
--name
-n
Name of the setting to update
Optional Parameters for env update-settings
--environment
-env
Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
--value
-v
Value to which setting should be updated to
pac env who
Displays information about the current Dataverse organization.
Optional Parameters for env who
--environment
-env
Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
--json
Returns the output of the command as a JSON formatted string.
See also
Microsoft Power Platform CLI Command Groups
Microsoft Power Platform CLI overview
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示