SharePoint Service Module for PowerShell Core
SPClientCore is published to PowerShell Gallery.
Works with PowerShell Core
Yes, SPClientCore works with PowerShell Core. And it does not work with Windows PowerShell. It means that you can use this module on Mac and Linux as well as Windows (of course if PowerShell Core is installed on the machine). There was only a way to run the SharePoint REST API to manage SharePoint Online in non-Windows environments. But SharePoint REST API has a few problems compared to the SharePoint Client Library (CSOM). SPClientCore provides full functionality by making compatible API calls with CSOM.
One module, manage all
PnP PowerShell has only site admin features, and SharePoint Online Management Shell has only tenant admin features. SPClientCore includes both elements. You can run cmdlets for site admin by connecting to a site (https://tenant.sharepoint.com and its sub URLs), and you can run tenant admin cmdlets for connecting to the SharePoint admin center (https://tenant-admin.sharepoint.com). You can also determine whether you are currently connected to the SharePoint admin center.
CSOM naming is difficult for non-programmers. For example, A site is not "Site" (that is "Web"), A column is not "Column" (that is "Field"). SPClientCore adjusts the naming so that it matches the name used by the user.
Uses Modern Authentication
SPClientCore supports Azure AD 2.0 authentication (Device Code Grant and Password Grant). If you enable MFA, you can log in with a web browser of another device. If you do not enable MFA, you can log in using your user name and password (admin consent is required).
- Microsoft.Extensions.DependencyInjection (2.2.0)
- System.IdentityModel.Tokens.Jwt (5.4.0)
- System.Management.Automation (6.1.0)
- Site Administration
- Attachment Files
- Content Types
- File Versions
- List Items
- List Templates
- Recycle Bin Items
- Site Templates
- Tenant Administration
- Deleted Site Collections
- Site Collections
- Site Templates