{"id":18737,"date":"2022-02-22T10:43:48","date_gmt":"2022-02-22T18:43:48","guid":{"rendered":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-apps\/power-platform-cli-january-update\/"},"modified":"2025-06-11T07:50:47","modified_gmt":"2025-06-11T14:50:47","slug":"power-platform-cli-january-update","status":"publish","type":"post","link":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-apps\/power-platform-cli-january-update\/","title":{"rendered":"Power Platform CLI January update"},"content":{"rendered":"
We are delighted to announce the release of our January update for the Power Platform CLI. We have made quite a few improvements in this update. Here are a few things that are worth trying out with this new update.<\/p>\n
When using the Power Platform Extension of Visual Studio Code, users mentioned that they did not like that, they had to explicitly type their username and password in the terminal window. To that effect, we now support device code authentication with -dc parameter in pac auth create<\/strong> command.<\/p>\n We have also revamped the version capability as well. We have introduced 2 new parameters -rv for revision version or -bv for build version. The version numbering sequence used by Power Platform for solutions is Major.Minor.Build.Revision<\/a>. You can now use these parameters to increment the build and revision numbers of the solution that you are importing into power platform. The Major and Minor numbers are only incremented when exporting via power platform or if your strategy parameter for version uses Git tags. Here is an example of using pac solution version -rv 6<\/strong> the solution version –strategy commands are only for build values increments.<\/p>\n If you have multiple versions of the Stand-alone Power platform CLI installed you can do<\/p>\n pac use <version #> <\/strong>to switch to different versions of PAC CLI<\/p>\n to install the latest version of Power Platform CLI, you can do, pac install latest<\/strong> Please try out some of these new capabilities, we have developed in the February update and provide us feedback at ISVFeedback@Microsoft.com<\/a> or The PowerUsers community<\/a><\/p>\n \u00a0<\/p>\n","protected":false},"excerpt":{"rendered":" New updates for PAC CLI in January Refresh<\/p>\n","protected":false},"author":244,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ms_queue_id":[],"ep_exclude_from_search":false,"_classifai_error":"","_classifai_text_to_speech_error":"","_alt_title":"","ms-ems-related-posts":[],"footnotes":""},"audience":[3378],"content-type":[],"job-role":[],"product":[3473],"property":[],"topic":[3421,3422],"coauthors":[2212],"class_list":["post-18737","post","type-post","status-publish","format-standard","hentry","audience-it-professional","product-power-apps","topic-application-modernization","topic-hyperautomation"],"yoast_head":"\n
When a user wants to logon, they need to provide the url for the environment. You will be given a device code to get a token from Azure AD. From here open a browser session on a device where you have interactive UI experiences launch and go to the URL: https:\/\/microsoft.com\/devicelogin<\/a>
\n
Enter the code that was provided to you on the terminal prompt and then proceed to provide your Azure AD username and password<\/p>\n
Then click on continue and then you are authenticated via the command line without exposing the username and password. Now you can proceed to interact with the Power Platform using either CodeSpaces\/VS Code Extension or the Stand-alone Power Platform CLI<\/p>\n
<\/p>\nPAC Solution version capability<\/h2>\n
\n

\npac solution version -bv 1<\/strong>
\n
<\/strong><\/p>\nFew other commands to explore<\/h2>\n
<\/p>\n
\n
\npac solution online-version <\/strong>is the command to use to update major and minor numbers for solutions.<\/p>\n
This will go online and change the version numbers in Dataverse for the solution. This way DevOps engineers, and Application Lifecycle management practitioners would be able accurately reflect version history as it maps to their Source code repository versioning as well, from a major,minor number perspective.<\/p>\n