A command line for Sitecore
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Data
Revolver.Core
Revolver.SheerExtensions
Revolver.Test
Revolver.UI
.editorconfig
.gitattributes
.gitignore
LICENSE
README.md
Revolver.sln
SolutionInfo.cs
breaking changes.txt
build configurations.targets
deploy.targets.example
how to build.md
sc version props.targets

README.md

Revolver

Revolver is a command line and scripting tool for Sitecore. It saves developers and administors time by allowing them to script common and repetative actions.

Revolver also supports custom tooling by allowing developers to create their own commands to be used and combined with the OOTB commands.

Examples

These are some quick examples of Revolver scripting:

# navigate the content tree
cd child-item
cd ../sibling

# list the children of the current item
ls

# get and set fields
gf -f title
sf text (this is the new text)

# get and set attributes of the item
ga
ga -a id
sa template {76036F5E-CBCE-46D1-AF0A-4143F9B557AA}

# create a new item
touch -t (sample/sample item) newitem

# locate all items based on a template
cd /
find -r -t {76036F5E-CBCE-46D1-AF0A-4143F9B557AA} pwd

# do the same using a custom content search index and only print names
csearch -i myindex _template:{76036F5E-CBCE-46D1-AF0A-4143F9B557AA} (ga -a name)

References

Additional information can be found on the codeflood website under the revolver section.