Sitecore

Sitecore Powershell Extension 1: Installation and Overview

It's All About Teamwork. This Is Tug Of War With Dad On Beautiful Grass Of Sunny Warm Day

The Sitecore Powershell Extension is a module that provides a command-line interface and scripting environment to work with the Sitecore platform. Using the Powershell Extension, we can perform various operations of Sitecore items, as well as allow access to Sitecore APIs. It looks and works in the same way as the Windows Powershell utility.

Sitecore Powershell Extension is not installed out of the box, therefore, we need to install it separately.

 

Installing the Sitecore Powershell Extension Module

  1. Go to http://marketplace.sitecore.net/ and download the package for Sitecore Powershell Extension for your Sitecore instance.
  2. Install the downloaded package in your instance.
  3. After successful installation, you will see the following additions to your Launchpad and Desktop.

 

Launchpad

sitecore powershell extension

Desktop

Sitecore - Understanding Development Approaches: A Sitecore Outlook
Understanding Development Approaches: A Sitecore Outlook

Designing, building, and implementing top-notch experiences not only requires a great deal of planning, strategy, and time – it also requires the right digital experience platform (DXP) and the right development approach for your business needs.

Get the Guide

powershell console and toolbox

 

Tools that Come With the Sitecore Powershell Extension Module

 

  1. Powershell Console

Powershellconsoole

This tool provides a simple command-line interface in the same way as our Windows Powershell. You can enter a single command at a time and see the output.

 

  1. Sitecore PowerShell Integrated Scripting Environment (Powershell ISE)

Powershellise

The Sitecore PowerShell ISE is a tool that can be used to create, edit, test, and execute PowerShell scripts. The Sitecore Powershell ISE offers a very advanced and flexible scripting environment.

ISE adds a GUI and more functions. Following are some of the functions that it provides over Powershell Console:

  1. Saving Powershell scripts and the ability to open them later
  2. Executing scripts with on click
  3. Switching the current database
  4. Switching the current user and language
  5. Debugging
  6. Ability to execute selected part of the script

Interface of Powershell ISE

interface of powershell

You can see all the options in the menu divided into sections which are named Write, Script Execution, Context, UI Context, and About.

Now, if your Sitecore Powershell Extension package is installed, you can go ahead and open Powershell ISE tool and execute the script to output “Hello World” as shown in the image above.

Useful Links:

  1. https://github.com/SitecorePowerShell/Console
  2. https://doc.sitecorepowershell.com/

This was just a basic introduction to the Sitecore Powershell Extension module and SPE tools that gets installed with the package. In the next post, we are going to see how we can fetch item information using different Sitecore Powershell Commands.

About the Author

Ramakant Chandel is working as a Sitecore Professional. He likes to explore challenging and new technical concepts in Sitecore. He is passionate about sharing his knowledge with everyone.

More from this Author

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe to the Weekly Blog Digest:

Sign Up
Categories