Sitecore PowerShell Extensions

  0 rating
9/11/2012 4:10:18 AM
3/30/2016 1:35:38 PM
Source: GitHub
Provider: Cognifide

About

The module provides a command line (CLI) and scripting environment (ISE) for automating tasks. SPE works with the Sitecore process, capable of making native calls to the Sitecore API. Running commands and writing scripts follow the standard and well-known Windows PowerShell syntax. Windows PowerShell is a common tool used in IT for desktop and server management, so we decided to stick with that as a framework to build upon.

Have you ever found yourself:

    * having to make a mundane change to a large number of pages?
    * in need of getting statistics on page properties or page type usages?
    * being curious of e.g. what’s the oldest page on your site?
    * having to copy or move a large number of files from one folder to another or between versioning and non versioning virtual path providers?
    * renaming or deleting files in your Media Library en-masse? 

If the answer to any of those (and more) is a “yes!”, I believe you might find the module useful.

The idea is to create a scripting environment to work within Sitecore on a granular level that allows 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. 

"There is nothing you can not do with PowerShell Console, because you're inside the Sitecore application. You can call the Sitecore API" - Alistair Deneys - Sitecore Symposium 2012

If you have any issues with the PowerShell Extensions module, please report them on our GitHub issue tracker

Read more about the module in our GitBook


Cognifide Logo

Michael West - SPE Developer

Documentation

Documentation
  • Documentation > Getting Started with the Sitecore Powershell Console
    Getting Started with the Sitecore Powershell Extensions

    The module allows for hosting PowerShell Console within the Sitecore Desktop environment.

    Once you install the module you will see a couple of additional icons in your Start menu. If you want to run scripts line-by-line like you would in a normal Windows PowerShell console use the item directly in the Sitecore menu:


    Powershell start icon


    However there are more options. If you want to write complete scripts and execute them in whole use the PowerShell ISE located in the "Development Tools" sub-menu. And you can start playing with the console. 


    Powershell application


    By default the ISE console comes with a sample script that you can execute to learn some basic philosophy of PowerShell. Please review it before executing.

    You can find links to some free PowerShell tutorials and books on ​my Tumblr to get you started on PowerShell language in general.

    For information and resources about the Sitecore implementation please refer to my Sitecore PowerShell Console Resources page.


    Just remember - it's a very sharp tool! Don't use this on production unless you really know what you're doing and had your script tested on your development environment!


    I will not be held responsible for any damage.

    0
  • Documentation > Sitecore PowerShell Resources
    Sitecore PowerShell Resources
    1
Back
Release notes
Click "read more" to see the full release notes...
Read more Back
Code examples

Solution screenshots(0)

Upload

Reviews (0)

Sort by: Date Most votes
  • Profile Avatar
    [fullName]

    Level: 0

    x0 x0 x0

    [date]

    [title]

    [text]

    Was this helpful?

    0

Comments (0)

Sort by: Date  Most votes

Leave a Comment

Comment must be field in
Post comment
loader

Write a review

Title can't be empty
Review can't be empty
Post review

Download

Title Description Download Action

Add File