What is Microsoft Power Platform CLI?
Effective June 2021, Microsoft Power Apps CLI is rebranded to Microsoft Power Platform CLI. More information: Blog: Microsoft Power Platform is the best way for teams to build togetherMicrosoft Power Platform CLI is currently not available for use in the GCC and GCC High regions.
Microsoft Power Platform CLI is a simple, one-stop developer CLI that empowers developers and ISVs to perform various operations in Microsoft Power Platform related to environment lifecycle, authentication, and work with Microsoft Dataverse environments, solution packages, portals, code components, and so on.
Install Microsoft Power Platform CLI
You can use either of the following ways to install Microsoft Power Platform CLI.
Using Power Platform VS Code Extension
Follow these steps to install Microsoft Power Platform CLI using Visual Studio Code:
Open Visual Studio Code.
Select Extensions icon from the Activity panel. In the search bar, enter Power Platform.
Select Install. Once the installation is finished, restart your Visual Studio Code to see the extension within the Terminal window.
Power Platform extension for Visual Studio Code updates automatically.
- You can also initiate the install into Visual Studio Code directly from Marketplace and it will launch Visual Studio Code and commence the extension installation.
Standalone Power Platform CLI
To install standalone Power Platform CLI:
Download and install Microsoft Power Platform CLI.
To take advantage of all the latest capabilities, update Microsoft Power Platform CLI tooling to the latest version by using this command (not applicable for Power Platform VS Code Extension):
pac install latest
- Currently, Microsoft Power Platform CLI is supported only on Windows 10 and Windows 11.
- Power Platform Extension for VS Code is in public preview, and works on Windows 10, Windows 11, Linux, and MacOS.
This table lists some of the common commands used in the CLI.
|Admin||Commands for environment lifecycle features.|
|Auth||Commands to authenticate to Dataverse.|
|Canvas||Commands for working with canvas app source files.|
|Org||Commands for working with Dataverse environments.|
|Package||Commands for working with solution packages.|
|Paportal||Commands for working with Power Apps portals (Preview).|
|PCF||Commands for working with Power Apps component framework.|
|Plugin||Command to create a plug-in project.|
|Solution||Commands for working with Dataverse solution projects.|
|Telemetry||Manages the telemetry settings.|
For the complete list of supported commands, run the
pac command or
pac <subcommand> - for example:
Uninstall Microsoft Power Platform CLI
To uninstall Microsoft Power Platform CLI tooling, run the MSI from here.
To uninstall the Visual Studio Code extension, follow the same steps as installing the extension, except this time select the uninstall button.
If you're a Private Preview participant and have an older version of CLI, follow these steps:
To find out where Microsoft Power Platform CLI is installed, open a command prompt and enter
Delete the PowerAppsCLI folder.
Open the Environment Variables tool by running the command
rundll32 sysdm.cpl,EditEnvironmentVariablesin the command prompt.
User variable for...section, double-click to select
Select the row containing the PowerAppsCLI path, and then select Delete on the right side.
Select OK twice.