Muokkaa

Jaa


Install the Power Platform Tools Visual Studio Code extension

Applies to: Windows Linux macOS

The Visual Studio Code extension is the recommended way to install Power Platform CLI. This extension upgrades automatically when new versions are released. You also have the options to install a previous version or side-load the extension.

Prerequisites

Download and install Visual Studio Code.

Install

You can install the Microsoft Power Platform CLI using the Visual Studio Code extension from the Visual Studio Marketplace or from Visual Studio Extensions.

Install from the Visual Studio Marketplace

  1. Go to Power Platform Tools
  2. Select Install.
  3. Select Continue if the Visual Studio Code is required to install this extension dialog appears
  4. Select Open if the This site is trying to open Visual Studio Code dialog appears
  5. In Visual Studio Code, select Install

Install from Visual Studio Code extensions

  1. In Visual Studio Code, select the Extensions icon in the navigation bar.
  2. Search for 'power platform tools'
  3. Select the Install button in the search results.

Install a previous version

If there's an issue with the current version, you can revert to an earlier version.

  1. In Visual Studio Code, select Extensions

  2. Search for 'power platform tools'

  3. In the main window, select the drop-down arrow on the Uninstall button

  4. Select Install Another version...

    Option to install another version

  5. Select the previous version you want to install

  6. After the installation is completed, select Reload Required

When you select this option, the extension gives you the option to Update and ignores automatic updates. To resume automatic updates:

  1. While viewing the Power Platform Tools extension in Visual Studio Code, select the drop-down arrow on the Update button.
  2. Clear the Ignore Updates check box
  3. Close and reopen Visual Studio Code to trigger the update.

Side-load install

In some organizations, downloading or initiating an install over the web is prohibited. Most cases, the organization downloads the installation media and stores it in a secure location and verify that it's working according to their standards, before it's distributed within the organization. Use the following instructions to support this type of installation.

  1. Go to Power Platform Tools in the Visual Studio Marketplace

  2. On the right side, in the Resources group select the Download Extension link.

    This downloads a file named microsoft-IsvExpTools.powerplatform-vscode-x.x.xx.vsix where x.x.xx is the current version.

  3. In Visual Studio Code select Extensions

  4. Select the ellipsis on the Extensions side bar, and then select Install from VSIX...

    Select Install from VSIX

  5. Select the downloaded file.

  6. When installation is complete, you'll see a notification saying Completed installing Power Platform Tools extension from VSIX.

Update

There's usually no need to update. The extension updates automatically as new versions are released. When you open Visual Studio Code, you'll see a notification like this:

Power Platform CLI update notification in Visual Studio code

If you choose to install a previous version, you'll need to re-enable automatic updates.

Uninstall

  1. In Visual Studio Code, select Extensions
  2. Search for 'power platform tools'.
  3. In the main window, select Uninstall.

Enable PAC CLI in Command Prompt (CMD) and PowerShell terminals for Windows

By default, the Visual Studio Code extension only enables commands using the Visual Studio Code PowerShell terminal.

To enable using PAC CLI in Command Prompt (CMD) and PowerShell terminals for Windows, you can do any of the following:

Authentication profile management

When you install the Visual Studio Code extension, you can view and manage authentication profiles.

See also

What is Microsoft Power Platform CLI?
Install Power Platform CLI with .NET Tool
Install Power Platform Tools for Windows