pac org

Work with your Dataverse organization.

Note

Version 1.27 introduced the pac env alias for the pac org command group. This means that you can use env in place of org. For example: pac env list instead of pac org list, and pac env select instead of pac org select.

Commands

Command Description
pac org fetch Performs FetchXML query against Dataverse
pac org list Lists all of the Dataverse organizations the user has access to
pac org list-settings List environment settings
pac org select Select default organization for current authentication profile.
pac org update-settings Update environment settings
pac org who Displays information about the current Dataverse organization.

pac org fetch

Performs FetchXML query against Dataverse

Optional Parameters for org 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 org list

Lists all of the Dataverse organizations the user has access to

Example

pac org list --filter myorg

The filter parameter is a regular expression based filter.

Optional Parameters for org list

--filter -f

Show only environments containing filter criteria.

pac org list-settings

List environment settings

Optional Parameters for org 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 org select

Select default organization for current authentication profile.

Examples

The following examples show the use of the pac org select command.

Select org by using environment URL

This example shows how to select an org by using an environment URL.

pac org select --environment "https://contosotest.crm.dynamics.com"

Select org by using environment ID

This example shows how to select an org by using an environment ID.

pac org select --environment 00000000-0000-0000-0000-000000000000

Optional Parameters for org select

--environment -env

Default environment (ID, url, unique name, or partial name).

pac org update-settings

Update environment settings

Required Parameters for org update-settings

--name -n

Name of the setting to update

Optional Parameters for org 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 org who

Displays information about the current Dataverse organization.

Optional Parameters for org 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