Skip to content

SXA-DEV/SitecorePowerShell

This branch is 27 commits behind SitecorePowerShell/Console:master.

Folders and files

NameName
Last commit message
Last commit date
May 11, 2024
Jan 22, 2023
Jan 22, 2023
Jan 22, 2023
Jan 22, 2023
Jun 2, 2024
Nov 23, 2022
May 17, 2024
May 2, 2020
May 3, 2024
Jan 22, 2023
Jan 22, 2023
Jan 22, 2023
Jan 22, 2023
Dec 2, 2022
Nov 18, 2022
Jan 22, 2023

Repository files navigation

Sitecore PowerShell Extensions

A command line and scripting tool built for the Sitecore platform.

Sitecore PowerShell Extensions


Notice

  • If you are using version 4.2 or older in your environments we recommend you update them to 5.0+ ASAP
  • We recommend that you DO NOT install SPE on Content Delivery servers or run it in setups that face the Internet in an unprotected connections (e.g. outside of a VPN protected environment)
  • Sitecore versions 7.x and below are no longer supported with the release of SPE 5.0

License

The Sitecore PowerShell Extensions module (SPE) provides a robust environment for automating tasks within Sitecore.

Sitecore PowerShell Extensions

Consider some of the following examples to see how SPE can improve your quality of life as a Sitecore developer/administrator:

  • Make changes to a large number of pages:
Get-ChildItem -Path master:\content\home -Recurse | 
    ForEach-Object { $_.Text += "<p>Updated with SPE</p>"  }
  • Find the oldest page on your site:
Get-ChildItem -Path master:\content\home -Recurse | 
    Select-Object -Property Name,Id,"__Updated" | 
    Sort-Object -Property "__Updated"
  • Remove a file from the Data directory:
Get-ChildItem -Path $SitecoreDataFolder\packages -Filter "readme.txt" | Remove-Item
  • Rename items in the Media Library:
Get-ChildItem -Path "master:\media library\Images" | 
    ForEach-Object { Rename-Item -Path $_.ItemPath -NewName ($_.Name + "-old") }

The idea behind the project is to create a scripting environment to work within Sitecore on a granular level to allow you to apply complex modifications and manipulate not just sites, but files and pages on a large scale or perform statistical analysis of your content using a familiar and well documented query language Windows PowerShell.

If you have any questions, comments, or suggegstions with the SPE module, please report them in the Issue Tracker. We'll also gladly respond to any of your questions on Sitecore Shared Source Modules Forum or in the Project Discussion Pages.

Enjoy!

Adam Najmanowicz Michael West
Adam Najmanowicz Michael West
Founder, Architect & Lead Developer Developer & Documentation Lead

Resources

Packages

No packages published

Languages

  • JavaScript 54.3%
  • C# 36.9%
  • PowerShell 6.0%
  • CSS 1.3%
  • HTML 0.8%
  • Smalltalk 0.6%
  • Other 0.1%