-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alistair Deneys
committed
Sep 21, 2015
1 parent
3b9db1b
commit decd2fe
Showing
1 changed file
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,39 @@ | ||
# revolver | ||
A command line for Sitecore | ||
# 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](http://www.codeflood.net) website under the [revolver](http://www.codeflood.net/revolver) section. |