Skip to content
Sitecore PowerShell Extensions
JavaScript C# PowerShell CSS HTML Smalltalk
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
Data/packages
Libraries
Modules
Spe.Abstractions
Spe.Package
Spe.Sitecore8
Spe.Sitecore92
Spe
UserConfiguration/App_Config/Include/z.Spe
.gitattributes
.gitignore
Deploy_Functions.ps1
NuGet.config
Post_Build.ps1
README.md
Release process.md
Setup-Module.ps1
Spe.sln
Spe.sln.DotSettings
deploy.json
deploy.targets
deploy.user.json.sample
license.md
readme-console-ise.png
readme-ise.gif

README.md

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

You can’t perform that action at this time.