v2.12.2 (Microsoft.PowerApps.CLI.Tool, NuGet) | pac <group> <command> [options] | Use pac <command> --help for full options | No install: dnx Microsoft.PowerApps.CLI.Tool --yes <command> (needs .NET 10+)
| list | List all environments from your tenant |
| create | Create a new Dataverse instance in your tenant |
| delete | Delete the environment from your tenant |
| copy | Copy source environment to a destination environment |
| backup | Take a manual backup of the environment |
| restore | Restore an environment to a given backup |
| list-backups | List all backups of the environment |
| reset | Reset the environment from your tenant |
| status | List the status of all operations in progress |
| set-backup-retention-period | Set backup retention in days (valid: 7, 14, 21, 28) |
| assign-user | Assign a user to an environment with a specified security role |
| assign-group | Assign a group to an environment with a specified security role |
| list-app-templates | List all supported Dataverse templates of model-driven apps in D365 |
| create-service-principal | Add Entra ID application & application user to the environment |
| list-service-principal | List Entra ID applications which have access to Dataverse |
| set-governance-config | Enable, disable, and edit managed environments |
| set-runtime-state | Update environment administration mode |
| list-tenant-settings | List tenant-level settings |
| update-tenant-settings | Update tenant-level settings |
| list-groups | List environment groups from tenant |
| add-group | Add an environment to a group |
| list-roles | List security roles from environment |
| self-elevate | Self-elevate to System Administrator role |
| application list | List Entra ID applications registered under the tenant |
| application register | Register Entra ID application with the tenant |
| application unregister | Unregister Entra ID application from the tenant |
| dlp-policy list | List DLP policies in the tenant |
| dlp-policy show | Show details of a specific DLP policy |
| create | Create and store an authentication profile on this computer |
| list | List the authentication profiles stored on this computer |
| select | Select which authentication profile should be active |
| delete | Delete a particular authentication profile |
| update | Update name or target environment of an existing profile |
| name | Name or rename an existing authentication profile |
| clear | Clear all authentication profiles stored on this computer |
| who | Display information about the currently selected auth profile |
--cloud on auth create. No interactive browser? Add --deviceCode (auto-applied in GitHub Codespaces).| list | List all Dataverse environments the user has access to |
| who | Display information about the current Dataverse organization |
| select | Select default org for current authentication profile |
| fetch | Perform FetchXML query against Dataverse |
| list-settings | List environment settings |
| update-settings | Update environment settings |
| init | Initialize a directory with a new Dataverse solution project |
| add-reference | Add a reference from the project in the current directory to the project at 'path' |
| list | List all solutions from the current Dataverse organization |
| delete | Delete a solution from Dataverse in the current environment |
| export | Export a solution from Dataverse |
| import | Import the solution into Dataverse |
| clone | Create a solution project based on an existing solution in your org |
| publish | Publish all customizations |
| upgrade | Apply solution upgrade |
| version | Update build or revision version for the solution |
| online-version | Set version for solution loaded in Dataverse |
| pack | Package solution components on local filesystem into solution.zip (SolutionPackager) |
| unpack | Extract solution components from solution.zip onto local filesystem (SolutionPackager) |
| check | Upload a Dataverse solution project to run against the Power Apps Checker service |
| create-settings | Create a settings file from solution zip or solution folder |
| add-solution-component | Add one or more solution components to the target unmanaged solution |
| add-license | Add license and plan info to the solution |
| sync | Sync the current solution project to the current state of the solution in your org |
| list | List canvas apps in the environment |
| download | Download canvas app as .msapp file |
| create | Generate a canvas app from a custom connector |
| pack | Pack sources into an msapp file Preview |
| unpack | Extract an msapp file into YAML sources Preview |
| validate | Validate the .pa.yaml source for an unzipped msapp file Preview |
| init | Initialize a directory with a new PCF project |
| push | Import the PCF project into the current Dataverse organization |
| version | Patch version for controls |
| init | Initialize a directory with a new Dataverse plug-in class library |
| push | Import plug-in into Dataverse |
| create | Create a new Dataverse connection |
| delete | Delete a Dataverse connection by connection-id |
| list | List all connections (shows Id, Name, API Id, Status) |
| update | Update a Dataverse connection |
| list | List the connectors registered in Dataverse |
| init | Initialize a new API Properties file for a connector |
| create | Create a new row in the Connector table in Dataverse |
| download | Download a Connector's OpenAPI definition & API Properties file |
| update | Update a Connector entity in Dataverse |
| list | List Copilot Studio agents in the current or target environment |
| status | Poll deployment status of a specified copilot |
| create | Create a new copilot using an existing template file |
| publish | Publish a Copilot Studio agent |
| extract-template | Extract a template file from an existing copilot |
| extract-translation | Extract file containing localized content for bots |
| merge-translation | Merge files containing localized content for bots |
| init-skills | Extract copilot skill definition files to current directory |
| mcp | Info about local MCP (Model Context Protocol) server |
| model list | List AI Builder models in current environment |
| model predict | Send text/prompt to an AI Model |
| list | List all pipelines in the environment |
| deploy | Start a pipeline deployment |
| export | Export data (uses Configuration Migration tool) |
| import | Import data (uses Configuration Migration tool) |
| init | Initialize a directory with a new Dataverse package project |
| add-external-package | Add package external to Dataverse solution system to a Package Deployer project |
| add-solution | Add prebuilt Dataverse solution file to a Package Deployer project |
| add-reference | Add reference to Dataverse solution project |
| deploy | Deploy package to Dataverse (.NET Full Framework only) |
| show | Show details of Dataverse package (.NET Full Framework only) |
| list | List all Power Pages websites from the current environment |
| download | Download Power Pages website content from the environment |
| upload | Upload Power Pages website content to the current environment |
| migrate-datamodel | Manage data model migration for your Power Pages website |
| bootstrap-migrate | Migrate HTML code from Bootstrap V3 to V5 |
| clone | Create website content from existing content |
| download-code-site | Download Power Pages website content from environment |
| upload-code-site | Upload compiled code to Power Pages site |
pac power-pages group below| list | List all published catalog items from the current environment |
| install | Install a catalog item to the target environment |
| submit | Submit catalog approval request |
| status | Get status of the catalog install/submit request |
| update | Update settings for the catalog |
| create-submission | Create catalog submission document Deprecated |
| list | List available Dataverse applications from Microsoft Marketplace/AppSource |
| install | Install or update a Dataverse application to a target environment |
| build | Build a code model for Dataverse APIs and Tables (early-bound class generation) |
| repl | Launch interactive Power Fx Read-Eval-Print Loop Preview |
| run | Run a file of Power Fx instructions Preview |
| run | Execute tests defined in a Test Plan file Preview |
| enable | Opt-in to sending usage information to Microsoft |
| disable | Opt-out of sending usage information to Microsoft |
| status | Show the current status of telemetry |
| list | List the launchable tools and their local install state and version |
| admin | Launch Power Platform Admin Center for the current environment |
| maker | Launch Power Apps Maker Portal for the current environment |
| prt | Launch Plug-in Registration Tool (PRT) |
| cmt | Launch Configuration Migration Tool (CMT) |
| pd | Launch Package Deployer (PD) |
| init-skills | Extract PAC CLI AI skill definition files to a local folder New |
| xpp install | Download and install the X++ compiler for the active environment New |
| xpp list | List X++ SDKs installed on this machine New |
| xpp uninstall | Remove an installed X++ SDK and its registration New |
| list | List all model-driven apps in the environment Preview |
| create | Create a new model-driven app Preview |
| list-languages | List enabled languages in the environment Preview |
| genpage list | List all generated pages in an app Preview |
| genpage download | Pull generated pages from a model-driven app Preview |
| genpage upload | Upload and publish generated page to an app Preview |
| genpage generate-types | Generate TypeScript schema definitions Preview |
| genpage transpile | Transpile TypeScript file for testing/debugging Preview |
| init | Initialize a Code app in current directory Preview |
| list | List code apps available in current environment Preview |
| push | Publish a new version of the Code app Preview |
| run | Run local server for connections loading locally Preview |
| add-data-source | Add a new datasource to the app Preview |
| delete-data-source | Delete a data source from current app Preview |
| list-connection-references | List connection references in environment/solution Preview |
| list-datasets | List datasets accessible by provided connector Preview |
| list-tables | List tables accessible by connector/dataset Preview |
| list-sql-stored-procedures | List stored procedures for SQL connection/dataset Preview |
pa, package @microsoft/power-apps-cli; the older power-apps binary was removed at GA) is the replacement: pa app init / run / push, pa app add data-source, and pa-only features such as pa app add flow, pa app add dataverse-api, pa connection create and pa app share. See the Code Apps cheat sheet. add-data-source gained -cr/-s connection-reference flags in v1.51.1 (Dec 2025). See npm quickstart| create | Create and link managed identity to a Dataverse component Preview |
| get | Show managed identity linked to a component Preview |
| update | Update tenant or application identifiers Preview |
| delete | Remove managed identity linked to a component Preview |
| configure-fic | Create federated identity credential on managed identity Preview |
| show-fic | Show computed federated identity credential Preview |
| verify-fic | Verify whether federated identity credential exists Preview |
| upgrade-version | Upgrade managed identity to latest version Preview |
| get-bot-quarantine-status | Retrieve the quarantine status of a bot |
| set-bot-as-quarantined | Quarantine an agent (e.g. after a security finding) |
| set-bot-as-unquarantined | Lift quarantine on a bot |
| reassign-copilot-agent | Reassign the owner of an orphaned/offboarded-user agent |
| delete-copilot-agent | Delete a bot |
| get/set-connector-consent-bypass | Get/set admin connector consent bypass for a bot |
| run-maker-evaluation-test-set | Trigger an agent evaluation test run against a test set |
| list/get-maker-evaluation-test-sets | List/get agent evaluation test sets |
| list/get-maker-evaluation-test-runs | List/get evaluation test run results |
| download-agent-channel-manifest | Download the M365 channel manifest package for an agent |
pac copilot (bot authoring/publishing)| get-recommendations | List Power Platform advisor recommendations for the tenant |
| get-recommendation-scenarios | List recommendation scenario names |
| get-recommendation-resources | List resources affected by a recommendation |
| get-scenario-actions | List allowed remediation actions for a recommendation |
| execute-recommendation-action | Execute a remediation action on flagged resources |
| get-action-schema | Get the parameter schema for a remediation action |
| list-rule-based-policies | List rule-based data policies available in the tenant |
| create-rule-based-policy | Create a rule-based policy with rule sets and metadata |
| get-rule-based-policy-by-id | Get policy details by ID including rule sets |
| patch-rule-based-policy | Add or update one or more rule sets on an existing policy |
| create-environment(-group)-rule-based-assignment | Assign a policy to an environment or environment group |
| list-rule-assignments | List policy assignments tenant-wide (also by env / env-group / policy) |
| create-rule-set / get-rule-set | Create/get a Rule Set scoped to an environment group |
| create-cross-tenant-connection-report | Generate a cross-tenant connection report |
| list/get-cross-tenant-connection-reports | List or fetch cross-tenant connection reports |
| list-role-definitions | List available RBAC role definitions |
| list-role-assignments | List role assignments (tenant scope) |
| create-role-assignment | Create a role assignment for a principal |
| delete-role-assignment | Delete a role assignment by ID |
| create/list/delete-environment-role-assignment | Same operations scoped to one environment |
| create/list/delete-environment-group-role-assignment | Same operations scoped to an environment group |
| apply-admin-role | Apply the Power Platform System Administrator role to a user |
| provision-new-environment | Provision a new environment (SKU, location, templates, currency) |
| delete-environment-by-id | Delete an environment by ID |
| recover-environment | Recover a recently deleted environment |
| copy-environment | Copy source environment to a target (Minimal or Full copy) |
| create/restore-environment-backup | Create a manual backup, or restore to a previous backup |
| enable/disable-managed-environment | Toggle Managed Environment governance |
| enable/disable-disaster-recovery | Toggle DR (paired-region) on an environment |
| perform-force-failover / perform-failback | Fail over to the paired DR region, or fail back to primary |
| perform-dr-drill | Run a non-disruptive DR drill |
| modify-environment-sku | Change environment SKU (Standard/Premium/Developer/Trial/…) |
| create/list/update/delete-environment-group | Manage environment groups (containers for group-level policy) |
| list-environments-for-user | List environments available to the authenticated user (OData filter/sort) |
pac admin for lifecycle ops with a richer API (validate-only dry-runs, provisioning templates/currencies/locations). Full reference: learn.microsoft.com/.../reference/environment-management| get-fin-ops-properties | Get F&O env properties (AOS counts, deployment type, demo dataset) |
| get-fin-ops-versions | List available F&O application versions |
| apply-fin-ops-version | Apply an F&O application version to an environment |
| get/update-fin-ops-maintenance-settings | View/update the maintenance window cadence |
| get-fin-ops-operation-errors | Retrieve recent F&O operation errors |
| get-tenant-application-package | List Dynamics 365 app packages available to the tenant |
| get-environment-application-package | List packages available/installed for a target environment |
| install-application-package | Install an app package by unique name into an environment |
| get-application-package-install-status | Poll install progress by operation ID |
| get-tenant-capacity-details | Get overall tenant capacity details |
| get-many-environment-entitlements | Get entitlements for the tenant broken down by environment |
| list-currency-reports | Get the tenant currency (allocations/consumption) report |
| get/update/patch-allocations-by-environment | Get or change currency allocations & enforcement rules per environment |
| list/create/update/delete-billing-policy | Manage tenant-level billing policies (pay-as-you-go) |
| add/remove-billing-policy-environment | Link/unlink environments to a billing policy |
| list/create/update/delete-isv-contract | Manage ISV pay-as-you-go contracts (cloud/desktop flow runs) |
| get-fin-ops-license-summary-v2 | Get the tenant's FinOps license summary |
| list-storage-warnings | List storage warning thresholds by category |
| get-tenant-resource-consumption-by-user | Drill into per-user resource consumption for an entitlement |
| get-admin-apps | List Power Apps across an environment for admin review |
| get-admin-app | Get details of a specific Power App by name |
pac canvas (download/pack/unpack app source)| list-cloud-flows | List cloud flows in an environment (filter by owner/date) |
| list-flow-actions | List actions/triggers used within a flow |
| list-flow-runs | List run history for a flow |
| list-connectors | List connectors available in an environment |
| get-connector-by-id | Get details of a specific connector |
| list-connections | List maker connections in an environment |
pac connection (create/update/delete a connection) and pac connector (custom connector CRUD)| query-resources | Run a KQL query against Azure Resource Graph across environments/apps/flows (with paging) |
| get-flows | Export flows owned by the calling user (DSR export) |
| delete-flow | Delete an M365 Copilot workflow for DSR compliance |
| get-connections / delete-connection | Export or delete a user's connections |
| get-approvals / delete-approval | Export or delete approval records |
| get-prompts / delete-prompt | Export or delete AI model prompt records |
| get-flow-runs-singleton / -non-singleton | Export flow run records for DSR (per-user or per-environment) |
| get-run-history-data(-non-singleton) | Export run history customer data for a specific flow run |
| get-websites / get-website-by-id | List all sites in an environment, or get one by ID |
| create-website / delete-website | Create a site from a template, or delete one by ID |
| start / stop / restart-website | Control the site's running state |
| enable/disable-waf | Toggle the Web Application Firewall for a site |
| get-waf-status / get-waf-rules | Check WAF status, or list managed/custom WAF rules |
| update-waf-policy-settings | Set enforcement mode (Prevention/Detection) and challenge cookie lifetimes |
| create-custom-domain | Add a custom hostname to the site |
| upload-certificate | Upload an SSL/managed certificate (.pfx) for the site |
| add-ssl-binding-by-portal | Bind an uploaded certificate to a custom domain hostname |
| start-quick-scan / start-deep-scan | Run a security scan against the site |
| get-security-scan-score / get-security-scan-report | Get the scan score or full findings report |
| add/remove-allowed-ip-addresses | Manage the site's IP restriction allow list |
| convert-trial-to-production | Convert a trial site to production (optionally enabling CDN/WAF) |
pac pages above (which syncs website content/data model). Full reference: learn.microsoft.com/.../reference/power-pages