{"id":491,"date":"2023-08-21T09:00:20","date_gmt":"2023-08-21T16:00:20","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/powerplatform\/?p=491"},"modified":"2023-08-21T16:07:08","modified_gmt":"2023-08-21T23:07:08","slug":"power-platform-command-line-interface-july-update","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powerplatform\/power-platform-command-line-interface-july-update\/","title":{"rendered":"Power Platform Command Line Interface: July Update"},"content":{"rendered":"<p>Alright all you Advanced Makers and Developers, we have news for you, the new July update is out, and we have made some great new improvements and features based on the feedback provided by you in the <a href=\"https:\/\/github.com\/microsoft\/powerplatform-build-tools\/discussions\">GitHub<\/a> discussions. Let us dive right into what capabilities are in store!<\/p>\n<h2>New and Updated capabilities<\/h2>\n<h3>PCF updates<\/h3>\n<p>We have added a new parameter in the <strong><em>&#96;pac pcf push&#96;<\/em><\/strong> command and it is <strong><em>&#96;&#8211;incremental&#96;<\/em><\/strong> which only pushes the files that have changed. We keep track of which files need to update based on the entries in the entity.<\/p>\n<p><img decoding=\"async\" width=\"1714\" height=\"1154\" src=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/word-image-491-1.png\" class=\"wp-image-492\" srcset=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/word-image-491-1.png 1714w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/word-image-491-1-300x202.png 300w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/word-image-491-1-1024x689.png 1024w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/word-image-491-1-768x517.png 768w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/word-image-491-1-1536x1034.png 1536w\" sizes=\"(max-width: 1714px) 100vw, 1714px\" \/><\/p>\n<p>Figure 1: Incremental flag on PCF push command<\/p>\n<p>In addition to this capability, when you do a <strong><em>&#96;pac pcf init&#96;<\/em><\/strong> we have now added react and react-dom as dependencies. So, there are fewer dependency references to worry about! Check it out in the node_modules folder in your control\u2019s directory<\/p>\n<p><img decoding=\"async\" width=\"1617\" height=\"457\" src=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-computer-screen-shot-of-a-blue-and-white-text-d.png\" class=\"wp-image-493\" alt=\"A computer screen shot of a blue and white text Description automatically generated\" srcset=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-computer-screen-shot-of-a-blue-and-white-text-d.png 1617w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-computer-screen-shot-of-a-blue-and-white-text-d-300x85.png 300w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-computer-screen-shot-of-a-blue-and-white-text-d-1024x289.png 1024w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-computer-screen-shot-of-a-blue-and-white-text-d-768x217.png 768w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-computer-screen-shot-of-a-blue-and-white-text-d-1536x434.png 1536w\" sizes=\"(max-width: 1617px) 100vw, 1617px\" \/><\/p>\n<p>Figure 2: New Dev Dependencies<\/p>\n<h3>Admin functions<\/h3>\n<p>We have added new command, yes a new command. Based on the popularity of <strong><em>&#96;pac admin create-service-principal&#96;<\/em><\/strong>, we now have a <strong><em>&#96;pac list-service-principal&#96;<\/em><\/strong> command. I know, you folks called us out on it on GitHub, saying create-service-principal was not useful if we don\u2019t what is created in the first place! Well, you said it and we listened.<\/p>\n<p><img decoding=\"async\" width=\"1467\" height=\"247\" src=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screen-shot-of-a-computer-description-automatic.png\" class=\"wp-image-494\" alt=\"A screen shot of a computer Description automatically generated\" srcset=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screen-shot-of-a-computer-description-automatic.png 1467w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screen-shot-of-a-computer-description-automatic-300x51.png 300w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screen-shot-of-a-computer-description-automatic-1024x172.png 1024w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screen-shot-of-a-computer-description-automatic-768x129.png 768w\" sizes=\"(max-width: 1467px) 100vw, 1467px\" \/><\/p>\n<p>Figure 3: New list service principal command<\/p>\n<p>Oh, in addition to that, we changed up the <strong><em>&#96;pac create-service-principal&#96;<\/em><\/strong> command too! A lot of you reported issues with the first incarnation of this command, so based on your feedback we improved it and now it runs more predictably. Thank you for keeping us honest here. In addition, we have provided additional parameters for the environment name and the name you want to call your application id. I forgot to mention that the secret that is created lasts for a year, after which you will need to go to Azure Portal to update the new secret.<\/p>\n<p><img decoding=\"async\" width=\"1723\" height=\"1080\" src=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screenshot-of-a-computer-program-description-au.png\" class=\"wp-image-495\" alt=\"A screenshot of a computer program Description automatically generated\" srcset=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screenshot-of-a-computer-program-description-au.png 1723w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screenshot-of-a-computer-program-description-au-300x188.png 300w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screenshot-of-a-computer-program-description-au-1024x642.png 1024w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screenshot-of-a-computer-program-description-au-768x481.png 768w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screenshot-of-a-computer-program-description-au-1536x963.png 1536w\" sizes=\"(max-width: 1723px) 100vw, 1723px\" \/><\/p>\n<p>Figure 4: updated create service principal command.<\/p>\n<h3>NEW!! tests command<\/h3>\n<p>This is a preview capability. You can now use the pac tests run command to execute automated tests to verify the functionality of your canvas apps. Develop a test plan using Power Fx in our yaml schema or export your existing Test Studio test plan using the \u201cDownload Test Suite\u201d to start testing in your environment. <a href=\"https:\/\/learn.microsoft.com\/en-us\/power-platform\/developer\/cli\/reference\/tests\">See our learn documentation for more information.<\/a><\/p>\n<p><img decoding=\"async\" width=\"1698\" height=\"421\" src=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screen-shot-of-a-computer-description-automatic-1.png\" class=\"wp-image-496\" alt=\"A screen shot of a computer Description automatically generated\" srcset=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screen-shot-of-a-computer-description-automatic-1.png 1698w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screen-shot-of-a-computer-description-automatic-1-300x74.png 300w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screen-shot-of-a-computer-description-automatic-1-1024x254.png 1024w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screen-shot-of-a-computer-description-automatic-1-768x190.png 768w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screen-shot-of-a-computer-description-automatic-1-1536x381.png 1536w\" sizes=\"(max-width: 1698px) 100vw, 1698px\" \/><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/PACTest.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/PACTest.png\" alt=\"Image PACTest\" width=\"1527\" height=\"414\" class=\"aligncenter size-full wp-image-512\" srcset=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/PACTest.png 1527w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/PACTest-300x81.png 300w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/PACTest-1024x278.png 1024w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/PACTest-768x208.png 768w\" sizes=\"(max-width: 1527px) 100vw, 1527px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/PACTestResult.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/PACTestResult.png\" alt=\"Image PACTestResult\" width=\"1099\" height=\"519\" class=\"aligncenter size-full wp-image-513\" srcset=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/PACTestResult.png 1099w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/PACTestResult-300x142.png 300w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/PACTestResult-1024x484.png 1024w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/PACTestResult-768x363.png 768w\" sizes=\"(max-width: 1099px) 100vw, 1099px\" \/><\/a><\/p>\n<p>Figure 5: New command that can run the playwright scripts.<\/p>\n<h3>Copilot command<\/h3>\n<p>We also made some changes to the copilot command, that we introduced last month. Now you can see which AI builder models are active or inactive in your environment.<\/p>\n<p><img decoding=\"async\" width=\"1187\" height=\"692\" src=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screenshot-of-a-computer-description-automatica.png\" class=\"wp-image-497\" alt=\"A screenshot of a computer Description automatically generated\" srcset=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screenshot-of-a-computer-description-automatica.png 1187w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screenshot-of-a-computer-description-automatica-300x175.png 300w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screenshot-of-a-computer-description-automatica-1024x597.png 1024w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screenshot-of-a-computer-description-automatica-768x448.png 768w\" sizes=\"(max-width: 1187px) 100vw, 1187px\" \/><\/p>\n<p>Figure 6: new Copilot list output<\/p>\n<p>In last month\u2019s update, we only provided the ability to refer to the modelby model-id, well we changed that too, rather made it a little more intuitive, by giving you a <em>new parameter<\/em> &#8211;name that allows you refer to model by the much more friendlier user name.<\/p>\n<p><img decoding=\"async\" width=\"1576\" height=\"493\" src=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screenshot-of-a-computer-screen-description-aut.png\" class=\"wp-image-498\" alt=\"A screenshot of a computer screen Description automatically generated\" srcset=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screenshot-of-a-computer-screen-description-aut.png 1576w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screenshot-of-a-computer-screen-description-aut-300x94.png 300w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screenshot-of-a-computer-screen-description-aut-1024x320.png 1024w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screenshot-of-a-computer-screen-description-aut-768x240.png 768w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/a-screenshot-of-a-computer-screen-description-aut-1536x480.png 1536w\" sizes=\"(max-width: 1576px) 100vw, 1576px\" \/><\/p>\n<p>Figure 7: new name parameter for Copilot predict.<\/p>\n<h3>Auth command<\/h3>\n<p>We have made some subtle changes to the auth command, which are as follows:<\/p>\n<ol>\n<li>When selecting an environment for creating your auth profile, we have improved the cloud detection capabilities as in which azure cloud is your environment running in, so that you don\u2019t have to provide the cloud parameter. <\/li>\n<li>On windows we offer a single sign-on capability for the Auth profile. Now that auth profile can be associated with an environment, if you have the authentication on windows machine and username and password to logon to Azure and Power platform <\/li>\n<\/ol>\n<h3>Catalog command (in Preview)<\/h3>\n<p>As you all know, catalog provides the ability to store templates, within the tenant&#8217;s environment, we have now added support for the common package manager. If you have not installed the Catalog capability the instructions are <a href=\"https:\/\/learn.microsoft.com\/en-us\/power-platform\/developer\/catalog#install-the-catalog-manager-application\">here<\/a>.The common package manager, allows you to submit packages and solutions to the catalog, that can then be used by other folks who want build-off of your organization&#8217;s standard templates. This capability is only available via the command line today to interact with. Do check out this capability and let us know.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/Catalog-submit.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/Catalog-submit.png\" alt=\"Image Catalog submit\" width=\"1724\" height=\"786\" class=\"alignnone size-full wp-image-507\" srcset=\"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/Catalog-submit.png 1724w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/Catalog-submit-300x137.png 300w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/Catalog-submit-1024x467.png 1024w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/Catalog-submit-768x350.png 768w, https:\/\/devblogs.microsoft.com\/powerplatform\/wp-content\/uploads\/sites\/79\/2023\/08\/Catalog-submit-1536x700.png 1536w\" sizes=\"(max-width: 1724px) 100vw, 1724px\" \/><\/a> Figure 7: pac catalog submit experience<\/p>\n<p>I know this one is not as lengthy as the update we provided last month, I am still going to request you try out these new functions. The new create-service-principal command is my favorite in this release along with tests command. The team and I really appreciate your engagement and please continue to provide to us at <a href=\"https:\/\/github.com\/microsoft\/powerplatform-build-tools\/discussions\">GitHub<\/a> repository<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Alright all you Advanced Makers and Developers, we have news for you, the new July update is out, and we have made some great new improvements and features based on the feedback provided by you in the GitHub discussions. Let us dive right into what capabilities are in store! New and Updated capabilities PCF updates [&hellip;]<\/p>\n","protected":false},"author":116092,"featured_media":517,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[24,21,29,2,10,36,11,23],"class_list":["post-491","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powerplatform","tag-alm","tag-fusion-development","tag-github","tag-powerapps","tag-pcf","tag-power-platform","tag-cli","tag-solutions"],"acf":[],"blog_post_summary":"<p>Alright all you Advanced Makers and Developers, we have news for you, the new July update is out, and we have made some great new improvements and features based on the feedback provided by you in the GitHub discussions. Let us dive right into what capabilities are in store! New and Updated capabilities PCF updates [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/posts\/491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/users\/116092"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/comments?post=491"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/posts\/491\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/media\/517"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/media?parent=491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/categories?post=491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powerplatform\/wp-json\/wp\/v2\/tags?post=491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}