@antonytm/mcp-sitecore-server 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/README.md +3 -0
  2. package/dist/bundle.js +106 -12
  3. package/dist/register.js +7 -0
  4. package/dist/register.js.map +1 -1
  5. package/dist/tools/powershell/documentation/add-basetemplate.md +137 -0
  6. package/dist/tools/powershell/documentation/add-itemacl.md +254 -0
  7. package/dist/tools/powershell/documentation/add-itemversion.md +231 -0
  8. package/dist/tools/powershell/documentation/add-placeholdersetting.md +410 -0
  9. package/dist/tools/powershell/documentation/add-rendering.md +217 -0
  10. package/dist/tools/powershell/documentation/add-rolemember.md +88 -0
  11. package/dist/tools/powershell/documentation/clear-itemacl.md +131 -0
  12. package/dist/tools/powershell/documentation/close-window.md +32 -0
  13. package/dist/tools/powershell/documentation/commands-list.md +134 -0
  14. package/dist/tools/powershell/documentation/convertfrom-clixml.md +67 -0
  15. package/dist/tools/powershell/documentation/convertfrom-itemclone.md +118 -0
  16. package/dist/tools/powershell/documentation/convertto-clixml.md +66 -0
  17. package/dist/tools/powershell/documentation/disable-user.md +89 -0
  18. package/dist/tools/powershell/documentation/enable-user.md +89 -0
  19. package/dist/tools/powershell/documentation/expand-token.md +144 -0
  20. package/dist/tools/powershell/documentation/export-item.md +165 -0
  21. package/dist/tools/powershell/documentation/export-package.md +129 -0
  22. package/dist/tools/powershell/documentation/export-role.md +150 -0
  23. package/dist/tools/powershell/documentation/export-updatepackage.md +111 -0
  24. package/dist/tools/powershell/documentation/export-user.md +147 -0
  25. package/dist/tools/powershell/documentation/find-item.md +718 -0
  26. package/dist/tools/powershell/documentation/get-archive.md +73 -0
  27. package/dist/tools/powershell/documentation/get-archiveitem.md +138 -0
  28. package/dist/tools/powershell/documentation/get-cache.md +62 -0
  29. package/dist/tools/powershell/documentation/get-database.md +96 -0
  30. package/dist/tools/powershell/documentation/get-domain.md +75 -0
  31. package/dist/tools/powershell/documentation/get-item.md +186 -0
  32. package/dist/tools/powershell/documentation/get-itemacl.md +168 -0
  33. package/dist/tools/powershell/documentation/get-itemclone.md +100 -0
  34. package/dist/tools/powershell/documentation/get-itemclonenotification.md +95 -0
  35. package/dist/tools/powershell/documentation/get-itemfield.md +182 -0
  36. package/dist/tools/powershell/documentation/get-itemreference.md +152 -0
  37. package/dist/tools/powershell/documentation/get-itemreferrer.md +154 -0
  38. package/dist/tools/powershell/documentation/get-itemtemplate.md +152 -0
  39. package/dist/tools/powershell/documentation/get-itemworkflowevent.md +133 -0
  40. package/dist/tools/powershell/documentation/get-layout.md +142 -0
  41. package/dist/tools/powershell/documentation/get-layoutdevice.md +97 -0
  42. package/dist/tools/powershell/documentation/get-package.md +63 -0
  43. package/dist/tools/powershell/documentation/get-placeholdersetting.md +477 -0
  44. package/dist/tools/powershell/documentation/get-preset.md +70 -0
  45. package/dist/tools/powershell/documentation/get-rendering.md +248 -0
  46. package/dist/tools/powershell/documentation/get-renderingparameter.md +84 -0
  47. package/dist/tools/powershell/documentation/get-role.md +134 -0
  48. package/dist/tools/powershell/documentation/get-rolemember.md +131 -0
  49. package/dist/tools/powershell/documentation/get-scriptsession.md +128 -0
  50. package/dist/tools/powershell/documentation/get-searchindex.md +92 -0
  51. package/dist/tools/powershell/documentation/get-session.md +107 -0
  52. package/dist/tools/powershell/documentation/get-sitecorejob.md +102 -0
  53. package/dist/tools/powershell/documentation/get-spemodule.md +134 -0
  54. package/dist/tools/powershell/documentation/get-spemodulefeatureroot.md +113 -0
  55. package/dist/tools/powershell/documentation/get-taskschedule.md +136 -0
  56. package/dist/tools/powershell/documentation/get-updatepackagediff.md +110 -0
  57. package/dist/tools/powershell/documentation/get-user.md +193 -0
  58. package/dist/tools/powershell/documentation/get-useragent.md +38 -0
  59. package/dist/tools/powershell/documentation/import-function.md +83 -0
  60. package/dist/tools/powershell/documentation/import-item-1.md +180 -0
  61. package/dist/tools/powershell/documentation/import-item.md +180 -0
  62. package/dist/tools/powershell/documentation/import-role.md +137 -0
  63. package/dist/tools/powershell/documentation/import-user.md +137 -0
  64. package/dist/tools/powershell/documentation/initialize-item.md +87 -0
  65. package/dist/tools/powershell/documentation/initialize-searchindex.md +116 -0
  66. package/dist/tools/powershell/documentation/initialize-searchindexitem.md +85 -0
  67. package/dist/tools/powershell/documentation/install-package.md +95 -0
  68. package/dist/tools/powershell/documentation/install-updatepackage.md +90 -0
  69. package/dist/tools/powershell/documentation/invoke-javascript.md +22 -0
  70. package/dist/tools/powershell/documentation/invoke-script.md +111 -0
  71. package/dist/tools/powershell/documentation/invoke-shellcommand.md +144 -0
  72. package/dist/tools/powershell/documentation/invoke-workflow.md +142 -0
  73. package/dist/tools/powershell/documentation/lock-item.md +157 -0
  74. package/dist/tools/powershell/documentation/login-user.md +56 -0
  75. package/dist/tools/powershell/documentation/logout-user.md +30 -0
  76. package/dist/tools/powershell/documentation/merge-layout.md +102 -0
  77. package/dist/tools/powershell/documentation/new-domain.md +72 -0
  78. package/dist/tools/powershell/documentation/new-explicitfilesource.md +104 -0
  79. package/dist/tools/powershell/documentation/new-explicititemsource.md +146 -0
  80. package/dist/tools/powershell/documentation/new-filesource.md +128 -0
  81. package/dist/tools/powershell/documentation/new-itemacl.md +175 -0
  82. package/dist/tools/powershell/documentation/new-itemclone.md +139 -0
  83. package/dist/tools/powershell/documentation/new-itemsource.md +171 -0
  84. package/dist/tools/powershell/documentation/new-itemworkflowevent.md +140 -0
  85. package/dist/tools/powershell/documentation/new-package.md +81 -0
  86. package/dist/tools/powershell/documentation/new-placeholdersetting.md +255 -0
  87. package/dist/tools/powershell/documentation/new-rendering.md +243 -0
  88. package/dist/tools/powershell/documentation/new-role.md +56 -0
  89. package/dist/tools/powershell/documentation/new-securitysource.md +176 -0
  90. package/dist/tools/powershell/documentation/new-user.md +161 -0
  91. package/dist/tools/powershell/documentation/new-usingblock.md +95 -0
  92. package/dist/tools/powershell/documentation/out-download.md +123 -0
  93. package/dist/tools/powershell/documentation/protect-item.md +120 -0
  94. package/dist/tools/powershell/documentation/publish-item.md +224 -0
  95. package/dist/tools/powershell/documentation/read-variable.md +252 -0
  96. package/dist/tools/powershell/documentation/receive-file.md +244 -0
  97. package/dist/tools/powershell/documentation/receive-itemclonenotification.md +116 -0
  98. package/dist/tools/powershell/documentation/receive-scriptsession.md +108 -0
  99. package/dist/tools/powershell/documentation/remove-archiveitem.md +125 -0
  100. package/dist/tools/powershell/documentation/remove-basetemplate.md +137 -0
  101. package/dist/tools/powershell/documentation/remove-domain.md +70 -0
  102. package/dist/tools/powershell/documentation/remove-itemversion.md +209 -0
  103. package/dist/tools/powershell/documentation/remove-layout.md +151 -0
  104. package/dist/tools/powershell/documentation/remove-placeholdersetting.md +478 -0
  105. package/dist/tools/powershell/documentation/remove-rendering.md +253 -0
  106. package/dist/tools/powershell/documentation/remove-renderingparameter.md +83 -0
  107. package/dist/tools/powershell/documentation/remove-role.md +70 -0
  108. package/dist/tools/powershell/documentation/remove-rolemember.md +79 -0
  109. package/dist/tools/powershell/documentation/remove-scriptsession.md +72 -0
  110. package/dist/tools/powershell/documentation/remove-searchindexitem.md +79 -0
  111. package/dist/tools/powershell/documentation/remove-session.md +77 -0
  112. package/dist/tools/powershell/documentation/remove-user.md +97 -0
  113. package/dist/tools/powershell/documentation/reset-itemfield.md +149 -0
  114. package/dist/tools/powershell/documentation/reset-layout.md +130 -0
  115. package/dist/tools/powershell/documentation/restart-application.md +30 -0
  116. package/dist/tools/powershell/documentation/restore-archiveitem.md +126 -0
  117. package/dist/tools/powershell/documentation/resume-searchindex.md +84 -0
  118. package/dist/tools/powershell/documentation/send-file.md +160 -0
  119. package/dist/tools/powershell/documentation/send-sheermessage.md +66 -0
  120. package/dist/tools/powershell/documentation/set-hostproperty.md +90 -0
  121. package/dist/tools/powershell/documentation/set-itemacl.md +158 -0
  122. package/dist/tools/powershell/documentation/set-itemtemplate.md +156 -0
  123. package/dist/tools/powershell/documentation/set-layout.md +166 -0
  124. package/dist/tools/powershell/documentation/set-rendering.md +213 -0
  125. package/dist/tools/powershell/documentation/set-renderingparameter.md +97 -0
  126. package/dist/tools/powershell/documentation/set-user.md +221 -0
  127. package/dist/tools/powershell/documentation/set-userpassword.md +109 -0
  128. package/dist/tools/powershell/documentation/show-alert.md +53 -0
  129. package/dist/tools/powershell/documentation/show-application.md +150 -0
  130. package/dist/tools/powershell/documentation/show-confirm.md +61 -0
  131. package/dist/tools/powershell/documentation/show-fieldeditor.md +231 -0
  132. package/dist/tools/powershell/documentation/show-input.md +129 -0
  133. package/dist/tools/powershell/documentation/show-listview.md +276 -0
  134. package/dist/tools/powershell/documentation/show-modaldialog.md +137 -0
  135. package/dist/tools/powershell/documentation/show-result.md +158 -0
  136. package/dist/tools/powershell/documentation/show-yesnocancel.md +92 -0
  137. package/dist/tools/powershell/documentation/start-scriptsession.md +230 -0
  138. package/dist/tools/powershell/documentation/start-taskschedule.md +124 -0
  139. package/dist/tools/powershell/documentation/stop-scriptsession.md +78 -0
  140. package/dist/tools/powershell/documentation/stop-searchindex.md +84 -0
  141. package/dist/tools/powershell/documentation/suspend-searchindex.md +84 -0
  142. package/dist/tools/powershell/documentation/switch-rendering.md +248 -0
  143. package/dist/tools/powershell/documentation/test-account.md +74 -0
  144. package/dist/tools/powershell/documentation/test-basetemplate.md +97 -0
  145. package/dist/tools/powershell/documentation/test-itemacl.md +182 -0
  146. package/dist/tools/powershell/documentation/test-rule.md +111 -0
  147. package/dist/tools/powershell/documentation/unlock-item.md +124 -0
  148. package/dist/tools/powershell/documentation/unlock-user.md +84 -0
  149. package/dist/tools/powershell/documentation/unprotect-item.md +124 -0
  150. package/dist/tools/powershell/documentation/update-itemreferrer.md +234 -0
  151. package/dist/tools/powershell/documentation/update-listview.md +139 -0
  152. package/dist/tools/powershell/documentation/update-searchindexitem.md +79 -0
  153. package/dist/tools/powershell/documentation/wait-scriptsession.md +100 -0
  154. package/dist/tools/powershell/documentation/write-log.md +82 -0
  155. package/dist/tools/powershell/get-powershell-documentation.d.ts +2 -0
  156. package/dist/tools/powershell/get-powershell-documentation.js +47 -0
  157. package/dist/tools/powershell/get-powershell-documentation.js.map +1 -0
  158. package/dist/tools/powershell/run-powershell-script.d.ts +3 -0
  159. package/dist/tools/powershell/run-powershell-script.js +13 -0
  160. package/dist/tools/powershell/run-powershell-script.js.map +1 -0
  161. package/dist/tools/sitecore-cli/get-sitecore-cli-documentation.d.ts +3 -0
  162. package/dist/tools/sitecore-cli/get-sitecore-cli-documentation.js +24 -0
  163. package/dist/tools/sitecore-cli/get-sitecore-cli-documentation.js.map +1 -0
  164. package/dist/tools/sitecore-cli/sitecore-cli-documentation.md +70 -0
  165. package/package.json +8 -8
@@ -0,0 +1,144 @@
1
+ # Invoke-ShellCommand
2
+
3
+ Executes Sitecore Shell command for an item. This command used to be named Execute-ShellCommand - a matching alias added for compatibility with older scripts.
4
+
5
+ ## Syntax
6
+
7
+ Invoke-ShellCommand \[-Item\] <Item> \[-Name\] <String> \[-Language <String\[\]>\]
8
+
9
+ Invoke-ShellCommand \[-Path\] <String> \[-Name\] <String> \[-Language <String\[\]>\]
10
+
11
+ Invoke-ShellCommand -Id <String> \[-Database <String>\] \[-Name\] <String> \[-Language <String\[\]>\]
12
+
13
+ ## Detailed Description
14
+
15
+ Executes Sitecore Shell command for an item. e.g. opening dialogs or performing commands that you can find in the Content Editor ribbon or context menu.
16
+
17
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
18
+
19
+ ## Aliases
20
+
21
+ The following abbreviations are aliases for this cmdlet:
22
+
23
+ * Execute-ShellCommand
24
+
25
+ ## Parameters
26
+
27
+ ### -Name <String>
28
+
29
+ Name of the sitecore command e.g. "item:publishingviewer"
30
+
31
+ | Aliases | |
32
+ | :--- | :--- |
33
+ | Required? | true |
34
+ | Position? | 1 |
35
+ | Default Value | |
36
+ | Accept Pipeline Input? | false |
37
+ | Accept Wildcard Characters? | false |
38
+
39
+ ### -Language <String\[\]>
40
+
41
+ Language that will be used as source language. If not specified the current user language will be used. Globbing/wildcard supported.
42
+
43
+ | Aliases | |
44
+ | :--- | :--- |
45
+ | Required? | false |
46
+ | Position? | named |
47
+ | Default Value | |
48
+ | Accept Pipeline Input? | false |
49
+ | Accept Wildcard Characters? | false |
50
+
51
+ ### -Item <Item>
52
+
53
+ The item to be sent to the command.
54
+
55
+ | Aliases | |
56
+ | :--- | :--- |
57
+ | Required? | true |
58
+ | Position? | 1 |
59
+ | Default Value | |
60
+ | Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
61
+ | Accept Wildcard Characters? | false |
62
+
63
+ ### -Path <String>
64
+
65
+ Path to the item to be sent to the command - additionally specify Language parameter to fetch different item language than the current user language.
66
+
67
+ | Aliases | |
68
+ | :--- | :--- |
69
+ | Required? | true |
70
+ | Position? | 1 |
71
+ | Default Value | |
72
+ | Accept Pipeline Input? | false |
73
+ | Accept Wildcard Characters? | false |
74
+
75
+ ### -Id <String>
76
+
77
+ Id of the the item to be sent to the command - additionally specify Language parameter to fetch different item language than the current user language.
78
+
79
+ | Aliases | |
80
+ | :--- | :--- |
81
+ | Required? | true |
82
+ | Position? | named |
83
+ | Default Value | |
84
+ | Accept Pipeline Input? | false |
85
+ | Accept Wildcard Characters? | false |
86
+
87
+ ### -Database <String>
88
+
89
+ Database containing the item to be sent to the command - can work with Language parameter to narrow the publication scope.
90
+
91
+ | Aliases | |
92
+ | :--- | :--- |
93
+ | Required? | false |
94
+ | Position? | named |
95
+ | Default Value | |
96
+ | Accept Pipeline Input? | false |
97
+ | Accept Wildcard Characters? | false |
98
+
99
+ ## Inputs
100
+
101
+ The input type is the type of the objects that you can pipe to the cmdlet.
102
+
103
+ * Sitecore.Data.Items.Item
104
+
105
+ ## Outputs
106
+
107
+ The output type is the type of the objects that the cmdlet emits.
108
+
109
+ * Sitecore.Data.Items.Item
110
+
111
+ ## Notes
112
+
113
+ Help Author: Adam Najmanowicz, Michael West
114
+
115
+ ## Examples
116
+
117
+ ### EXAMPLE 1
118
+
119
+ Launch Publishing Viewer for /sitecore/content/home item.
120
+
121
+ ```powershell
122
+ PS master:\> Get-Item master:\content\home\ | Invoke-ShellCommand "item:publishingviewer"
123
+ ```
124
+
125
+ ### EXAMPLE 2
126
+
127
+ Initiate /sitecore/content/home item duplication.
128
+
129
+ ```powershell
130
+ PS master:\> Get-Item master:/content/home | Invoke-ShellCommand "item:duplicate"
131
+ ```
132
+
133
+ ### EXAMPLE 3
134
+
135
+ Show properties of the /sitecore/content/home item.
136
+
137
+ ```powershell
138
+ PS master:\> Get-Item master:/content/home | Invoke-ShellCommand "contenteditor:properties"
139
+ ```
140
+
141
+ ## Related Topics
142
+
143
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
144
+
@@ -0,0 +1,142 @@
1
+ # Invoke-Workflow
2
+
3
+ Executes Workflow action for an item. This command used to be named Execute-Workflow - a matching alias added for compatibility with older scripts.
4
+
5
+ ## Syntax
6
+
7
+ Invoke-Workflow \[-Item\] <Item> \[-CommandName <String>\] \[-Comments <String>\] \[-Language <String\[\]>\]
8
+
9
+ Invoke-Workflow \[-Path\] <String> \[-CommandName <String>\] \[-Comments <String>\] \[-Language <String\[\]>\]
10
+
11
+ Invoke-Workflow -Id <String> \[-Database <String>\] \[-CommandName <String>\] \[-Comments <String>\] \[-Language <String\[\]>\]
12
+
13
+ ## Detailed Description
14
+
15
+ Executes Workflow action for an item. If the workflow action could not be performed for any reason - an appropriate error will be raised.
16
+
17
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
18
+
19
+ ## Aliases
20
+
21
+ The following abbreviations are aliases for this cmdlet:
22
+
23
+ * Execute-Workflow
24
+
25
+ ## Parameters
26
+
27
+ ### -CommandName <String>
28
+
29
+ Namer of the workflow command.
30
+
31
+ | Aliases | |
32
+ | :--- | :--- |
33
+ | Required? | false |
34
+ | Position? | named |
35
+ | Default Value | |
36
+ | Accept Pipeline Input? | false |
37
+ | Accept Wildcard Characters? | false |
38
+
39
+ ### -Comments <String>
40
+
41
+ Comment to be saved in the history table for the action.
42
+
43
+ | Aliases | |
44
+ | :--- | :--- |
45
+ | Required? | false |
46
+ | Position? | named |
47
+ | Default Value | |
48
+ | Accept Pipeline Input? | false |
49
+ | Accept Wildcard Characters? | false |
50
+
51
+ ### -Language <String\[\]>
52
+
53
+ Language that will be used as source language. If not specified the current user language will be used. Globbing/wildcard supported.
54
+
55
+ | Aliases | |
56
+ | :--- | :--- |
57
+ | Required? | false |
58
+ | Position? | named |
59
+ | Default Value | |
60
+ | Accept Pipeline Input? | false |
61
+ | Accept Wildcard Characters? | false |
62
+
63
+ ### -Item <Item>
64
+
65
+ The item to have the workflow action executed.
66
+
67
+ | Aliases | |
68
+ | :--- | :--- |
69
+ | Required? | true |
70
+ | Position? | 1 |
71
+ | Default Value | |
72
+ | Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
73
+ | Accept Wildcard Characters? | false |
74
+
75
+ ### -Path <String>
76
+
77
+ Path to the item to have the workflow action executed - additionally specify Language parameter to fetch different item language than the current user language.
78
+
79
+ | Aliases | |
80
+ | :--- | :--- |
81
+ | Required? | true |
82
+ | Position? | 1 |
83
+ | Default Value | |
84
+ | Accept Pipeline Input? | false |
85
+ | Accept Wildcard Characters? | false |
86
+
87
+ ### -Id <String>
88
+
89
+ Id of the the item to have the workflow action executed - additionally specify Language parameter to fetch different item language than the current user language.
90
+
91
+ | Aliases | |
92
+ | :--- | :--- |
93
+ | Required? | true |
94
+ | Position? | named |
95
+ | Default Value | |
96
+ | Accept Pipeline Input? | false |
97
+ | Accept Wildcard Characters? | false |
98
+
99
+ ### -Database <String>
100
+
101
+ Database containing the item to have the workflow action executed - can work with Language parameter to narrow the publication scope.
102
+
103
+ | Aliases | |
104
+ | :--- | :--- |
105
+ | Required? | false |
106
+ | Position? | named |
107
+ | Default Value | |
108
+ | Accept Pipeline Input? | false |
109
+ | Accept Wildcard Characters? | false |
110
+
111
+ ## Inputs
112
+
113
+ The input type is the type of the objects that you can pipe to the cmdlet.
114
+
115
+ * Sitecore.Data.Items.Item
116
+
117
+ ## Notes
118
+
119
+ Help Author: Adam Najmanowicz, Michael West
120
+
121
+ ## Examples
122
+
123
+ ### EXAMPLE 1
124
+
125
+ Submit item to approval, item gotten from path
126
+
127
+ ```powershell
128
+ PS master:\> Invoke-Workflow -Path master:/content/home -CommandName "Submit" -Comments "Automated"
129
+ ```
130
+
131
+ ### EXAMPLE 2
132
+
133
+ Reject item, item gotten from pipeline
134
+
135
+ ```powershell
136
+ PS master:\> Get-Item master:/content/home | Invoke-Workflow -CommandName "Reject" -Comments "Automated"
137
+ ```
138
+
139
+ ## Related Topics
140
+
141
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
142
+
@@ -0,0 +1,157 @@
1
+ # Lock-Item
2
+
3
+ Locks the Sitecore item by the current or specified user.
4
+
5
+ ## Syntax
6
+
7
+ Lock-Item \[-Item\] <Item> \[-Force\] \[-PassThru\] \[-Identity <AccountIdentity>\]
8
+
9
+ Lock-Item \[-Path\] <String> \[-Force\] \[-PassThru\] \[-Identity <AccountIdentity>\]
10
+
11
+ Lock-Item -Id <String> \[-Database <String>\] \[-Force\] \[-PassThru\] \[-Identity <AccountIdentity>\]
12
+
13
+ ## Detailed Description
14
+
15
+ The Lock-Item command unlocks the item.
16
+
17
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
18
+
19
+ ## Parameters
20
+
21
+ ### -Force  <SwitchParameter>
22
+
23
+ Forces the item to be locked by the specified user even if it's currently locked by another user.
24
+
25
+ | Aliases | |
26
+ | :--- | :--- |
27
+ | Required? | false |
28
+ | Position? | named |
29
+ | Default Value | |
30
+ | Accept Pipeline Input? | false |
31
+ | Accept Wildcard Characters? | false |
32
+
33
+ ### -PassThru  <SwitchParameter>
34
+
35
+ Passes the processed object back into the pipeline.
36
+
37
+ | Aliases | |
38
+ | :--- | :--- |
39
+ | Required? | false |
40
+ | Position? | named |
41
+ | Default Value | |
42
+ | Accept Pipeline Input? | false |
43
+ | Accept Wildcard Characters? | false |
44
+
45
+ ### -Identity  <AccountIdentity>
46
+
47
+ User name including domain for which the item is to be locked. If no domain is specified - 'sitecore' will be used as the default domain.
48
+
49
+ Specifies the Sitecore user by providing one of the following values.
50
+
51
+ ```powershell
52
+ Local Name
53
+ Example: adam
54
+ Fully Qualified Name
55
+ Example: sitecore\adam
56
+ ```
57
+
58
+ | Aliases | |
59
+ | :--- | :--- |
60
+ | Required? | false |
61
+ | Position? | named |
62
+ | Default Value | |
63
+ | Accept Pipeline Input? | false |
64
+ | Accept Wildcard Characters? | false |
65
+
66
+ ### -Item  <Item>
67
+
68
+ The item to be processed.
69
+
70
+ | Aliases | |
71
+ | :--- | :--- |
72
+ | Required? | true |
73
+ | Position? | 1 |
74
+ | Default Value | |
75
+ | Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
76
+ | Accept Wildcard Characters? | false |
77
+
78
+ ### -Path  <String>
79
+
80
+ Path to the item to be processed - can work with Language parameter to specify the language other than current session language.
81
+
82
+ | Aliases | |
83
+ | :--- | :--- |
84
+ | Required? | true |
85
+ | Position? | 1 |
86
+ | Default Value | |
87
+ | Accept Pipeline Input? | false |
88
+ | Accept Wildcard Characters? | false |
89
+
90
+ ### -Id  <String>
91
+
92
+ Id of the item to be processed.
93
+
94
+ | Aliases | |
95
+ | :--- | :--- |
96
+ | Required? | true |
97
+ | Position? | named |
98
+ | Default Value | |
99
+ | Accept Pipeline Input? | false |
100
+ | Accept Wildcard Characters? | false |
101
+
102
+ ### -Database  <String>
103
+
104
+ Database containing the item to be fetched with Id parameter.
105
+
106
+ | Aliases | |
107
+ | :--- | :--- |
108
+ | Required? | false |
109
+ | Position? | named |
110
+ | Default Value | |
111
+ | Accept Pipeline Input? | false |
112
+ | Accept Wildcard Characters? | false |
113
+
114
+ ## Inputs
115
+
116
+ The input type is the type of the objects that you can pipe to the cmdlet.
117
+
118
+ * can be piped from another cmdlet\* Sitecore.Data.Items.Item
119
+
120
+ ## Outputs
121
+
122
+ The output type is the type of the objects that the cmdlet emits.
123
+
124
+ * Only if -PassThru is used\* Sitecore.Data.Items.Item
125
+
126
+ ## Notes
127
+
128
+ Help Author: Adam Najmanowicz, Michael West
129
+
130
+ ## Examples
131
+
132
+ ### EXAMPLE 1
133
+
134
+ Lock the Home item providing its path
135
+
136
+ ```powershell
137
+ PS master:\> Lock-Item -Path master:\content\home
138
+ ```
139
+
140
+ ### EXAMPLE 2
141
+
142
+ Lock the Home item by providing it from the pipeline and passing it back to the pipeline. The Item is locked by the "sitecore\adam" user.
143
+
144
+ ```powershell
145
+ PS master:\> Get-Item -Path master:\content\home | Lock-Item -PassThru -Identity sitecore\adam
146
+
147
+ Name Children Languages Id TemplateName
148
+ ---- -------- --------- -- ------------
149
+ Home False {en, ja-JP, de-DE, da} {110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9} Sample Item
150
+ ```
151
+
152
+ ## Related Topics
153
+
154
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
155
+ * [Unlock-Item](https://github.com/SitecorePowerShell/Book/tree/bfef3ab0ca500162f7287e1fd4fa14bb4f6a760b/appendix/commands/Unlock-Item.md)
156
+ * Get-Item
157
+
@@ -0,0 +1,56 @@
1
+ # Login-User
2
+
3
+ Logs a user in and performs further script instructions in the context of the user.
4
+
5
+ ## Syntax
6
+
7
+ Login-User \[-Identity\] <GenericIdentity> \[-Password\] <String>
8
+
9
+ ## Detailed Description
10
+
11
+ Logs a user in and performs further script instructions in the context of the user.
12
+
13
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
14
+
15
+ ## Parameters
16
+
17
+ ### -Identity <GenericIdentity>
18
+
19
+ User name including domain. If no domain is specified - 'sitecore' will be used as the default value
20
+
21
+ | Aliases | |
22
+ | :--- | :--- |
23
+ | Required? | true |
24
+ | Position? | 1 |
25
+ | Default Value | |
26
+ | Accept Pipeline Input? | false |
27
+ | Accept Wildcard Characters? | false |
28
+
29
+ ### -Password <String>
30
+
31
+ Password for the account provided using the -Identity parameter.
32
+
33
+ | Aliases | |
34
+ | :--- | :--- |
35
+ | Required? | true |
36
+ | Position? | 2 |
37
+ | Default Value | |
38
+ | Accept Pipeline Input? | false |
39
+ | Accept Wildcard Characters? | false |
40
+
41
+ ## Notes
42
+
43
+ Help Author: Adam Najmanowicz, Michael West
44
+
45
+ ## Examples
46
+
47
+ ### EXAMPLE
48
+
49
+ ```powershell
50
+ PS master:\> Login-User -Identity "sitecore\admin" -Password "b"
51
+ ```
52
+
53
+ ## Related Topics
54
+
55
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
56
+
@@ -0,0 +1,30 @@
1
+ # Logout-User
2
+
3
+ Logs the current user out.
4
+
5
+ ## Syntax
6
+
7
+ ## Detailed Description
8
+
9
+ Logs the current user out.
10
+
11
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
12
+
13
+ ## Parameters
14
+
15
+ ## Notes
16
+
17
+ Help Author: Adam Najmanowicz, Michael West
18
+
19
+ ## Examples
20
+
21
+ ### EXAMPLE
22
+
23
+ ```powershell
24
+ PS master:\> Logout-User
25
+ ```
26
+
27
+ ## Related Topics
28
+
29
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
30
+
@@ -0,0 +1,102 @@
1
+ # Merge-Layout
2
+
3
+ The Merge-Layout command takes all the layout information stored in the FinalLayout field and merges into the SharedLayout field. The FinalLayout field is reset after the merge completes.
4
+
5
+ ## Syntax
6
+
7
+ ```powershell
8
+ Merge-Layout [-Item] <Item> [-Language <String[]>]
9
+
10
+ Merge-Layout [-Path] <String> [-Language <String[]>]
11
+
12
+ Merge-Layout -Id <String> [-Database <String>] [-Language <String[]>]
13
+ ```
14
+
15
+ ## Detailed Description
16
+
17
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
18
+
19
+ ## Parameters
20
+
21
+ ### -Language  &lt;String\[\]&gt;
22
+
23
+ | Aliases | |
24
+ | :--- | :--- |
25
+ | Required? | false |
26
+ | Position? | named |
27
+ | Default Value | |
28
+ | Accept Pipeline Input? | false |
29
+ | Accept Wildcard Characters? | false |
30
+
31
+ ### -Item  &lt;Item&gt;
32
+
33
+ | Aliases | |
34
+ | :--- | :--- |
35
+ | Required? | true |
36
+ | Position? | 1 |
37
+ | Default Value | |
38
+ | Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
39
+ | Accept Wildcard Characters? | false |
40
+
41
+ ### -Path  &lt;String&gt;
42
+
43
+ | Aliases | |
44
+ | :--- | :--- |
45
+ | Required? | true |
46
+ | Position? | 1 |
47
+ | Default Value | |
48
+ | Accept Pipeline Input? | false |
49
+ | Accept Wildcard Characters? | false |
50
+
51
+ ### -Id  &lt;String&gt;
52
+
53
+ | Aliases | |
54
+ | :--- | :--- |
55
+ | Required? | true |
56
+ | Position? | named |
57
+ | Default Value | |
58
+ | Accept Pipeline Input? | false |
59
+ | Accept Wildcard Characters? | false |
60
+
61
+ ### -Database  &lt;String&gt;
62
+
63
+ | Aliases | |
64
+ | :--- | :--- |
65
+ | Required? | false |
66
+ | Position? | named |
67
+ | Default Value | |
68
+ | Accept Pipeline Input? | false |
69
+ | Accept Wildcard Characters? | false |
70
+
71
+ ## Inputs
72
+
73
+ The input type is the type of the objects that you can pipe to the cmdlet.
74
+
75
+ * Sitecore.Data.Items.Item
76
+
77
+ ## Notes
78
+
79
+ Help Author: Adam Najmanowicz, Michael West
80
+
81
+ ## Examples
82
+
83
+ ### EXAMPLE 1
84
+
85
+ The following retrieves all pages under home and merges the layout.
86
+
87
+ ```powershell
88
+ Get-ChildItem master:\content\Showcase\int\home -Recurse | Merge-Layout
89
+ ```
90
+
91
+ ## Related Topics
92
+
93
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
94
+ * [Add-Rendering](add-rendering.md)
95
+ * [New-Rendering](new-rendering.md)
96
+ * [Set-Rendering](set-rendering.md)
97
+ * [Get-Rendering](get-rendering.md)
98
+ * [Get-LayoutDevice](get-layoutdevice.md)
99
+ * [Remove-Rendering](remove-rendering.md)
100
+ * [Get-Layout](get-layout.md)
101
+ * [Reset-Layout](reset-layout.md)
102
+
@@ -0,0 +1,72 @@
1
+ # New-Domain
2
+
3
+ Creates a new domain with the specified name.
4
+
5
+ ## Syntax
6
+
7
+ New-Domain \[-Name\] &lt;String&gt; \[-LocallyManaged\]
8
+
9
+ ## Detailed Description
10
+
11
+ The New-Domain command creates a domain if it does not exist.
12
+
13
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
14
+
15
+ ## Parameters
16
+
17
+ ### -Name &lt;String&gt;
18
+
19
+ The name of the domain.
20
+
21
+ | Aliases | |
22
+ | :--- | :--- |
23
+ | Required? | true |
24
+ | Position? | 1 |
25
+ | Default Value | |
26
+ | Accept Pipeline Input? | false |
27
+ | Accept Wildcard Characters? | false |
28
+
29
+ ### -LocallyManaged &lt;SwitchParameter&gt;
30
+
31
+ TODO: Provide description for this parameter
32
+
33
+ | Aliases | |
34
+ | :--- | :--- |
35
+ | Required? | false |
36
+ | Position? | named |
37
+ | Default Value | |
38
+ | Accept Pipeline Input? | false |
39
+ | Accept Wildcard Characters? | false |
40
+
41
+ ## Inputs
42
+
43
+ The input type is the type of the objects that you can pipe to the cmdlet.
44
+
45
+ * System.String
46
+
47
+ Represents the name of a domain.
48
+
49
+ ## Outputs
50
+
51
+ The output type is the type of the objects that the cmdlet emits.
52
+
53
+ * None.
54
+
55
+ ## Notes
56
+
57
+ Help Author: Adam Najmanowicz, Michael West
58
+
59
+ ## Examples
60
+
61
+ ### EXAMPLE
62
+
63
+ ```powershell
64
+ PS master:\> New-Domain -Name "domainName"
65
+ ```
66
+
67
+ ## Related Topics
68
+
69
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
70
+ * [Get-Domain](get-domain.md)
71
+ * [Remove-Domain](remove-domain.md)
72
+