Forum Discussion
I want to know whether PnP SharePoint can Work in Powershell On RHEL -7 (Linux Platform)
Hi RashmiVSharan,
Regarding the use of the PnP PowerShell library in the Linux platform, I believe it's https://www.erwinmcm.com/cross-platform-pnp-powershell. Basically, the CSOM library used by PnP is not supported in PowerShell Core.
Maybe you could use a Docker instance to access the files from a 'Windows context'? That way, you could use the PnP Powershell from your Docker instance and be able to connect successfully.
Let me know if you need any help.
Regards,
- RashmiVSharanJun 16, 2020Copper Contributor
Carlos_Marins Hi Carlos,
Thank You for your quick response.
Will I be able to use PnP Sharepoint On Linux Platform after the installation of O365 CLI https://pnp.github.io/office365-cli/https://pnp.github.io/office365-cli/
As the above link state that after installation in any other platform it will work.
If not?? Could You please guide me which APi (CSOM/Rest API,PnP) can be used in Powershell in Linux Platform.
- Carlos_MarinsJun 16, 2020Iron Contributor
I haven't worked with the O365 CLI yet, but yeah you might be right. It seems to work with Linux platforms too. If that's the case, then I suggest you use it. Let me know if it doesn't work so we can work out a better solution for your problem.