<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Daniel Laskewitz</title>
    <description>The latest articles on Forem by Daniel Laskewitz (@laskewitz).</description>
    <link>https://forem.com/laskewitz</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F306465%2F11d65295-61c7-442f-98e8-f651d57ab7cf.JPG</url>
      <title>Forem: Daniel Laskewitz</title>
      <link>https://forem.com/laskewitz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/laskewitz"/>
    <language>en</language>
    <item>
      <title>Streamline your solution development with the Power Platform CLI: Create a solution from scratch</title>
      <dc:creator>Daniel Laskewitz</dc:creator>
      <pubDate>Tue, 21 Feb 2023 21:20:59 +0000</pubDate>
      <link>https://forem.com/powerplatform/streamline-your-solution-development-with-the-power-platform-cli-new-solution-4p03</link>
      <guid>https://forem.com/powerplatform/streamline-your-solution-development-with-the-power-platform-cli-new-solution-4p03</guid>
      <description>&lt;p&gt;In the &lt;a href="https://dev.to/azure/getting-started-with-the-power-platform-cli-kca"&gt;previous post&lt;/a&gt;, I focused on installing the Power Platform CLI, creating the auth profile and switching environments. In this blog, the solution command group is the superstar!&lt;/p&gt;

&lt;h2&gt;
  
  
  📦 Solution command group
&lt;/h2&gt;

&lt;p&gt;As you expect by now, the solution command group enables you to work with Power Platform solutions. The solution command group has a lot of commands, so it's too much to talk about all of them in this blog. Instead, I will focus on my favorite ones that will get you started.&lt;/p&gt;

&lt;p&gt;To see all commands in the solution command group, run the following command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pac solution help&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This will output the following result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu7x2gp93dnuclk42lsfp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu7x2gp93dnuclk42lsfp.png" alt="Overview of all the commands in the Power Platform CLI solutions command group" width="800" height="327"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you have experience with &lt;a href="https://aka.ms/pp/alm" rel="noopener noreferrer"&gt;Application Lifecycle Management (ALM)&lt;/a&gt; in the Power Platform, these commands might look familiar! A lot of them are available as both &lt;a href="https://aka.ms/pp/alm/devops" rel="noopener noreferrer"&gt;Azure DevOps&lt;/a&gt; taks and &lt;a href="https://aka.ms/pp/alm/github" rel="noopener noreferrer"&gt;GitHub Actions&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  👩🏾‍💻 Developer scenarios
&lt;/h2&gt;

&lt;p&gt;Like I explained in the &lt;a href="https://dev.to/azure/getting-started-with-the-power-platform-cli-kca"&gt;earlier blog&lt;/a&gt;, in the Power Platform environments are important. Not too long ago, Microsoft &lt;a href="https://powerapps.microsoft.com/blog/making-it-easier-to-work-with-dataverse/" rel="noopener noreferrer"&gt;announced&lt;/a&gt; that you can have up to three developer environments for free! This helps a lot in this story, since you might work on multiple environments, or you might want to try out how and if your solution moves easily from environment A to environment B. In this blog series, I will describe a bunch of developer scenarios, and in this blog, I will start with creating a solution from scratch.&lt;/p&gt;

&lt;h3&gt;
  
  
  ➕ Creating a solution from scratch
&lt;/h3&gt;

&lt;p&gt;This is the easiest scenario. In this case, you can create a solution by using the &lt;code&gt;pac solution init&lt;/code&gt; command.&lt;/p&gt;

&lt;p&gt;How? Let's run the help command for that.&lt;/p&gt;

&lt;h4&gt;
  
  
  🆕 Initialize a solution
&lt;/h4&gt;

&lt;p&gt;&lt;code&gt;pac solution init help&lt;/code&gt; will show you all that you need to know.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fimjeqz2yog1kjni5zrwz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fimjeqz2yog1kjni5zrwz.png" alt="Output of the pac solution init help command. Shows the required arguments (publisher-name &amp;amp; publisher-prefix) and optional ones (outputDirectory)." width="800" height="191"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This shows that there are two required arguments:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Publisher Name (--publisher-name or alias -pn)&lt;/li&gt;
&lt;li&gt;Publisher Prefix (--publisher-prefix or alias -pp)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And one optional one:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Output Directory (--outputDirectory or alias -o)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let's initialize our first solution by running the below command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pac solution init --publisher-name Microsoft --publisher-prefix msft&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;When you open the directory in Visual Studio Code, you will see the &lt;code&gt;Solution.xml&lt;/code&gt; file, in the &lt;code&gt;src/Other&lt;/code&gt; folder. Open that, and let's explore what's in there!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyh2fw2k7b4wxyobxsi07.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyh2fw2k7b4wxyobxsi07.png" alt="Screenshot of a Visual Studio Code with the solution.xml opened. In the file you can see various solution properties like the unique name, version, solution package type, localized names, and publisher details." width="800" height="191"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The first thing that I see is that the solution unique name is &lt;code&gt;SolutionDemo&lt;/code&gt;, which is the directory I ran the &lt;code&gt;pac solution init&lt;/code&gt; command in. That name gets duplicated in the &lt;code&gt;LocalizedName&lt;/code&gt; property as well. The version (&lt;code&gt;1.0&lt;/code&gt;) and Managed (value is &lt;code&gt;2&lt;/code&gt; now, which stands for solution package type both) properties Also, I see the publisher's name &lt;code&gt;Microsoft&lt;/code&gt; as the unique name of the publisher. Below that we also see the prefix &lt;code&gt;msft&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Just a heads up: when using the output directory argument, the solution name will be that name. So, it could be handy to use this option instead.&lt;/p&gt;

&lt;h4&gt;
  
  
  ⚙️ Build the solution
&lt;/h4&gt;

&lt;p&gt;Now, we only have our solution, but there's nothing added to the solution. The solution also doesn't exist in a Power Platform environment as well. So, let's first see if we can build the solution and import it into a Power Platform environment.&lt;/p&gt;

&lt;p&gt;First, we need to run &lt;code&gt;dotnet build&lt;/code&gt;. This builds the project and creates a zip file which we can use for import.&lt;/p&gt;

&lt;h4&gt;
  
  
  🆕 Git init and git commit
&lt;/h4&gt;

&lt;p&gt;Now is a suitable time to run the &lt;code&gt;git init&lt;/code&gt; command to initialize a git repo in your solution folder. This will be useful, because you can then do a &lt;code&gt;git commit&lt;/code&gt; for a first init commit. Later, this will be helpful because we can then see the differences between what we committed now and what we have later after we added some things to the solution in the maker portal.&lt;/p&gt;

&lt;h4&gt;
  
  
  ⬆️ Import the solution
&lt;/h4&gt;

&lt;p&gt;Importing a solution can be done by running the &lt;code&gt;pac solution import&lt;/code&gt; command. Run &lt;code&gt;pac solution import help&lt;/code&gt; to get all the details about the command:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F97d9520aldzacvxe4j5j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F97d9520aldzacvxe4j5j.png" alt="Output of the pac solution import help command." width="800" height="227"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can use the optional arguments for various scenarios. An example is adding the &lt;code&gt;--publish-changes&lt;/code&gt; argument to publish the changes after a successful import. But for now, let's use the standard command to import the solution.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pac solution import&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This will import the solution in the currently active environment. If all went well, you should be able to see your solution in the environment:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh3xmjsuoig35geh4li1y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh3xmjsuoig35geh4li1y.png" alt="Solution overview " width="800" height="406"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The solution is empty because there is nothing added to the solution yet. Select "Objects" in the left navigation and let's add something to the solution:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add a canvas app (New &amp;gt; App &amp;gt; Canvas App, App name: &lt;code&gt;Test App&lt;/code&gt; &amp;amp; click create)

&lt;ul&gt;
&lt;li&gt;Add a button to the app, save the app &amp;amp; go back to the solution.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;Although this is not a functional app, it will show you what this does to the solution folder when we're done with our next step.&lt;/p&gt;

&lt;h4&gt;
  
  
  🔄 Sync the solution
&lt;/h4&gt;

&lt;p&gt;Because we already have a solution locally, we can make use of &lt;code&gt;pac solution sync&lt;/code&gt;. We are going to synchronise the solution in two different ways now:&lt;/p&gt;

&lt;p&gt;First, we will use the standard sync command with no arguments.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pac solution sync&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The above command synchronises the solution from the Power Platform environment back to the local folder.&lt;/p&gt;

&lt;p&gt;After the sync is completed, we can see that five files are changed. This is because the canvas app has been added to the solution.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fymib2358yrkkd7joxpi6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fymib2358yrkkd7joxpi6.png" alt="View of the five files that have been changed by the pac solution sync command" width="800" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Because the solution sync by default doesn't unpack canvas apps yet, we can't see what's in the canvas app. But the &lt;code&gt;pac solution sync&lt;/code&gt; commands has some tricks up its sleeve:&lt;/p&gt;

&lt;p&gt;Let's run the following command and see what happens.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pac solution sync --processCanvasApps&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjso0lesjn3g8w7jx18y3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjso0lesjn3g8w7jx18y3.png" alt="View of the eighteen files that have been changed by the pac solution sync command with the process canvas apps argument" width="800" height="805"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are eighteen changes now in the solution. This is because the above command also unpacked the canvas app that is in our solution. We can now for instance see the &lt;code&gt;Screen1.fx.yaml&lt;/code&gt; file, which is a representation of the screen with the button we added in the maker portal.&lt;/p&gt;

&lt;p&gt;When you open that file, you can see that we added a button here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkalzv4ama2y1b2ichntq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkalzv4ama2y1b2ichntq.png" alt="A diff screen where the changes are visible between the initial commit and the current version on our local machine. On the left you can see a red part (it didn't exist before) and on the right you can see a definition of a screen with a button in green" width="800" height="439"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Commit these changes and keep on working on your solution. If you run &lt;code&gt;pac solution sync&lt;/code&gt; after each set of changes, and you commit these changes, you'll build up a history of changes. That's really helpful when others might take over the project later! They can then see exactly which changes you made for a certain requirement. &lt;/p&gt;

&lt;h2&gt;
  
  
  🎁 Wrap up
&lt;/h2&gt;

&lt;p&gt;This was a tour around some of the solution commands. In the future, I will also write a blog post on how to work with solutions that are already in source control, like for instance in a GitHub repository.&lt;/p&gt;

&lt;p&gt;For now, this is the first step into the solution command group. If you want to see more commands, look at the video below!&lt;/p&gt;

&lt;h2&gt;
  
  
  📺 Power Platform CLI Solutions
&lt;/h2&gt;

&lt;p&gt;A while back, I had a great chat with David Jenni to talk about the solution command group for the Power Platform CLI. Check it out to see it live in action!&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/2gVCsFutUFo"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>webcomponents</category>
      <category>frontend</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Getting Started with the Power Platform CLI</title>
      <dc:creator>Daniel Laskewitz</dc:creator>
      <pubDate>Fri, 17 Feb 2023 17:38:03 +0000</pubDate>
      <link>https://forem.com/powerplatform/getting-started-with-the-power-platform-cli-kca</link>
      <guid>https://forem.com/powerplatform/getting-started-with-the-power-platform-cli-kca</guid>
      <description>&lt;p&gt;As a developer, you might be used to working with the command line. When using low-code tools like the Power Platform, that's not a given. To bridge the gap for developers, Microsoft has created the Power Platform CLI.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Inner loop &amp;amp; outer loop development&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The Power Platform CLI works for both inner loop development and outer loop development. The inner loop is for when a developer wants to work on a project and build a new feature for instance. The outer loop is to make sure that what has been built, also can be deployed to other environments. The Power Platform CLI also powers &lt;a href="https://aka.ms/pp/github-actions" rel="noopener noreferrer"&gt;the GitHub Actions for Power Platform&lt;/a&gt; as well as the &lt;a href="https://aka.ms/pp/devops" rel="noopener noreferrer"&gt;Microsoft Power Platform Build Tools for Azure DevOps&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Which commands are available in the Power Platform CLI? There are a lot... Currently, they are divided in sixteen command groups. Below you can see the overview of those command groups:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnh1dnzah1gmnkzzyssv0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnh1dnzah1gmnkzzyssv0.png" alt="Power Platform CLI Command Groups" width="800" height="339"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A command group is a set of commands that belong to a certain topic. For instance, with the PCF command group you can work with Power Apps component framework projects and initialize, push and version your PCF components.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Installation&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The Power Platform CLI can be installed on Windows, MacOS and Linux devices. The easiest way to install the Power Platform CLI, is to install the &lt;a href="http://aka.ms/pac/docs#install-using-power-platform-tools-for-visual-studio-code" rel="noopener noreferrer"&gt;Power Platform Tools extension for VS Code&lt;/a&gt;. This will automatically install the CLI and makes it available in the integrated terminal. For Windows, it's also possible to install the CLI as via &lt;a href="http://aka.ms/pac/docs#install-power-platform-cli-for-windows" rel="noopener noreferrer"&gt;a MSI Installer&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Although Power Platform CLI is a cross-platform CLI, some commands only work on Windows. That's simply because those commands work with tools that haven't been available cross platform. In the &lt;a href="https://aka.ms/pac/docs" rel="noopener noreferrer"&gt;docs on Microsoft Learn&lt;/a&gt;, you will see which commands don't work cross platform. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbxt8puhkc83n8ko0ov6j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbxt8puhkc83n8ko0ov6j.png" alt="Note that states that a command is only available for the .NET Full Framework version of the PAC CLI" width="800" height="102"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Connecting to your Power Platform environment&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;With the installation done, we are on our way, but we still need to connect to the Power Platform environment to be able to do something with the Power Platform.&lt;/p&gt;

&lt;p&gt;There are two concepts that you need to be aware of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A tenant, this is your own part of the Microsoft Cloud that's available for your company. Some people work with multiple companies, and they might have to connect to multiple tenants&lt;/li&gt;
&lt;li&gt;An environment, you can see this as a container inside your tenant which enables you to group data and content you have. This way you can have multiple environments to make split development work from testing and production workloads&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the Power Platform CLI, you should first connect with the tenant before you can work with the environments. To connect with a tenant, we are going to use a simple command in the &lt;code&gt;pac auth&lt;/code&gt; command group:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pac auth create&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This command will open a browser window and ask you to log in with your credentials. When you are logged in, you can use the following command to list the connection you have created:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pac auth list&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This command lists all the auth profiles you have created. If this was the first time connecting with the Power Platform CLI, this will only show one profile. In the scenario where you work with multiple customers, this is an especially useful command to see which profile is available for which customer and you can use the &lt;code&gt;pac auth select&lt;/code&gt; to easily switch between these profiles.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If you want to know which other commands are available in the &lt;code&gt;pac auth&lt;/code&gt; command group, make sure to go to &lt;a href="https://aka.ms/pac/auth" rel="noopener noreferrer"&gt;aka.ms/pac/auth&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Next, we also want to see which environments there are in the tenant. To do this, run the following command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pac org list&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This command will output a list with environments that are available in your tenant. If you want to see which environment you are currently connected to, you can run the &lt;code&gt;pac org who&lt;/code&gt; command. This command will also output useful info like the environment ID, the user ID of the currently logged in user, and more!&lt;/p&gt;

&lt;p&gt;If you want to switch between environments, you can run the following command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pac org select --environment {ID}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Don't forget to replace the &lt;code&gt;{ID}&lt;/code&gt; part with the ID, URL or unique name that you can get from the &lt;code&gt;pac org list&lt;/code&gt; command.  To verify that you're connected to the right environment, you can run the &lt;code&gt;pac org who&lt;/code&gt; command. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If you want to know which other commands are available in the &lt;code&gt;pac org&lt;/code&gt; command group, make sure to go to &lt;a href="https://aka.ms/pac/org" rel="noopener noreferrer"&gt;aka.ms/pac/org&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Power Platform CLI overview&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A couple of weeks back, I had the pleasure to have a chat with Kartik Kanakasabesan, who is the Program Manager of the Power Platform CLI. In the video, which is embedded below, Kartik shows how you can use the Power Platform to your benefit.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/NkoWGF8a4aQ"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>career</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
