Published on

How to running PnP Powershell on Linux

Authors

Last post we went through how to install Powershell and PnP on linux, in this post we are going make it easier to use :)

So how to we start using Powershell ? Well for short commands you can always start terminal:

Image

after that we type pwsh and powershell will start:

Image

Now your regular PnP commands will work as usual :) I've tested on SharePoint online and creating a team works perfectly:

Image

But what if you want to create a script? Well ISE doesn't exist for linux or it kinda does with help from Visual studio code:

By pressing Ctrl + P we can enable ISE mode. So what is ISE mode ? exactly how it sounds :) It converts your VS Code to Powershell ISE:

Image

Image

This works was same old ISE that we are used to with some extra features like getting a description on how command works:

Image

But what if you want to go back to the regular vs code, well press Ctrl + P and select disable ISE :

Image