Edit

Install Power Platform CLI with .NET tool

Applies to: Windows Linux macOS

Learn how to install, update, and uninstall Power Platform CLI by using .NET tool commands. This user-specific global installation lets you invoke the CLI from any directory.

Note

You need an internet connection to install and update. The Power Platform CLI with .NET Tool installs and updates from this NuGet package: Microsoft.PowerApps.CLI.Tool

Prerequisites

You must have .NET installed. (.NET 10.0 is recommended.)

Install Power Platform CLI

Install Power Platform CLI by using the dotnet tool install command:

dotnet tool install --global Microsoft.PowerApps.CLI.Tool

Update Power Platform CLI

Update Power Platform CLI by using the dotnet tool update command:

dotnet tool update --global Microsoft.PowerApps.CLI.Tool

Note

All updates for Power Platform CLI require an internet connection to access the latest NuGet package: Microsoft.PowerApps.CLI

Uninstall Power Platform CLI

Uninstall Power Platform CLI by using the dotnet tool uninstall command:

dotnet tool uninstall --global Microsoft.PowerApps.CLI.Tool

File locations

The default location for a tool's executable file depends on the operating system:

OS Path
Linux/macOS $HOME/.dotnet/tools
Windows %USERPROFILE%\.dotnet\tools

When you first run the SDK, it adds this location to your path. So you can invoke global tools from any directory without specifying the tool location.

Tool access is user-specific, not machine global. A global tool is only available to the user that installed the tool.

See also

What is Microsoft Power Platform CLI?
Install the Power Platform Tools Visual Studio Code extension
Install Power Platform Tools for Windows
How to manage .NET tools