

Microsoft Power Platform CLI is available for use in the GCC and GCC High (US Sovereign cloud) regions. Once installed (it shouldn’t be long), you will have a notification pop-ing up in the bottom right corner of Visual Studio Code.Īll you have to do now, is to close your terminal and reopen it, and you will be able to run the command code.Microsoft Power Platform CLI is a simple, one-stop developer CLI that empowers developers and ISVs to perform various operations in Microsoft Power Platform related to environment lifecycle, authentication, and work with Microsoft Dataverse environments, solution packages, portals, code components, and more. Now, type "Shell Command: Install ‘code’ command in PATH", and click on the option. Then press the keys command-shift-P (or ⌘-⇧-P), a text field should appear, stating with a >. So now, let’s focus on the main goal, being able to call the command code from your the terminal.To do so, you must open Visual Studio Code.

The first step to have the command code accessible is to install Visual Studio Code, obviously.If this is not already the case for you, then, follow this link, download and install it on your computer.Īt this point, you should be able to open Visual Studio Code, without using the terminal 😉 You can also add the option -n to open it in a new windows, or the option -h to display the help and have all the description of all the possibilities available to you. Once setup up, you can use command line like code my_file_or_folder to open a file or a folder in Visual Studio Code. Two week ago, I had to reinstall all the tools I use on a new computer, since the previous one passed away ☠Īnd since I often use Visual Studio Code when developing, (please, no debate over which text editor is the best in the comment 😝), I had to reinstall it and make it easily accessible through the terminal.įor those who don’t know, Visual Studio Code has a shortcut, a command line tool named code, which allow you to use summon Visual Studio Code though your terminal.
