今天给大家演示一下如何使用Power Platform CLI来下载Plugin Registration Tool.
前提条件
- 本地需要安装.net
 
1. 下载并安装Power Platform CLI
可以在VS Code的Terminal中使用powershell或者直接在cmd中运行下面的命令:
dotnet tool install --global Microsoft.PowerApps.CLI.Tool 
 
2. 下载安装Plugin Registration Tool,直接运行如下命令:
pac tool prt 

安装完成后会自动启动。
这个工具默认的安装路径是
C:\Users\<user name>\AppData\Local\Microsoft\PowerPlatform\PRT\<tool version number>
pac还有很多命令,我们可以用来查看,更新,和移除工具:
- 查看工具是否安装
 
pac tool list 

- 更新,下面的例子中prt是Plug-in Registration Tool,如果是CMT是Configuration Migration Tool,pd是Package Deployer -- 如果有新版本的话,会在安装路径中新建一个新版本的文件夹,而旧版本的文件夹不会被删除
 
pac tool prt -u 
- 移除 -- 它会把此工具安装路径中的所有版本全部删除
 
pac tool prt -c 
参考链接:
Dataverse development tools (Microsoft Dataverse) - Power Apps | Microsoft Learn
Microsoft Power Platform CLI - Power Platform | Microsoft Learn
Install Power Platform CLI with .NET Tool - Power Platform | Microsoft Learn
Microsoft Power Platform CLI tool command group - Power Platform | Microsoft Learn




![Problem #8 [Easy]](https://img-blog.csdnimg.cn/direct/8e3470409369490b923d625980bc87d9.png)











![[docker] 核心知识 - 容器/镜像的管理和操作](https://img-blog.csdnimg.cn/direct/ead44bb2cd9047d7a10afe6786fb4732.gif#pic_center)

