JavaScript C# PowerShell CSS Other
Clone or download
Latest commit 65bc1ff Aug 11, 2018
Permalink
Failed to load latest commit information.
.github Fixed typo in message. Aug 17, 2017
Cognifide.PowerShell.Package #946 | Update projects references (NuGet) and remove unused code Sep 24, 2017
Cognifide.PowerShell.Sitecore7 #946 | Update projects references (NuGet) and remove unused code Sep 24, 2017
Cognifide.PowerShell.Sitecore8 #988 : Added enabled rule support which disables the click event. Aug 11, 2018
Cognifide.PowerShell Formatted scripts. Aug 11, 2018
Data/packages Added missing packages. Downloaded these from the marketplace. Oct 25, 2015
Documentation Update Find-Item.md Feb 1, 2018
Libraries Documentation update WIP Jun 14, 2015
Modules #1012 : Add check to cap the timeout to int max. Jun 2, 2018
UserConfiguration/App_Config/Include Default user configuration had an invalid token definition Aug 9, 2017
.gitattributes Fix for items not being able to deserialize from the disk because git… Sep 27, 2013
.gitignore Moved libraries to subfolders. Dec 31, 2017
Cognifide.PowerShell.sln #1003 : First pass at a reporting dashboard. May 15, 2018
Cognifide.PowerShell.sln.DotSettings Added rule to format using var keyword and applied the new formatting. Jan 26, 2015
Deploy_Functions.ps1 #922: Rewrote the deployment process to use PS and simplified configu… Aug 6, 2017
NuGet.config #977 : Added NuGet config to the repo. Feb 10, 2018
Post_Build.ps1 #922: Rewrote the deployment process to use PS and simplified configu… Aug 6, 2017
README.md Fixed grammatical error. Dec 23, 2016
Release process.md 2.8 Release Dec 19, 2014
Setup-Module.ps1 #922: Rewrote the deployment process to use PS and simplified configu… Aug 6, 2017
deploy.json #922: Rewrote the deployment process to use PS and simplified configu… Aug 6, 2017
deploy.targets #922: Rewrote the deployment process to use PS and simplified configu… Aug 6, 2017
deploy.user.json.sample #922: Rewrote the deployment process to use PS and simplified configu… Aug 6, 2017
license.md Issue #263 - WIP Dec 19, 2014
readme-console-ise.png Added image to the readme. Dec 23, 2016
readme-ise.gif Added animated gif for ISE demonstration. Dec 23, 2016

README.md

Sitecore PowerShell Extensions: a CLI and scripting tool

Sitecore PowerShell Extensions

- If you are using version 4.2 or older in your environments, please update them to 4.3 ASAP
- Please be mindful that we recommend that you DO NOT install it 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)

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 | % { $_.Text += "<p>Updated with SPE</p>"  }
  • Find the oldest page on your site:
gci master:\content\home -Recurse | select Name,Id,"__Updated" | sort "__Updated"
  • Remove a file from the Data directory:
gci $SitecoreDataFolder\packages -Filter "readme.txt" | ri
  • Rename items in the Media Library:
gci "master:\media library\Images" | % { rni $_.ItemPath -NewName ($_.Name + "-old") }

Note: Aliases and positional parameters were used in the above examples. Use Get-Alias to see them all.

  • gci = Get-ChildItem
  • ri = Remove-Item
  • rni = Rename-Item

If you can answer yes to any of those (and more), you will certainly find this module a powerful and necessary tool.

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 Mike Reynolds
Adam Najmanowicz Michael West Mike Reynolds
Founder, Architect & Lead Developer Developer & Documentation Lead SPE Evangelist

Resources

Download the module from the Sitecore Marketplace.

Read the SPE user guide.

See a whole variety of links to SPE material.

Watch some quick start training videos.

A big "Thank you!" to Cognifide for letting Adam spend some of his working time working on the module!