@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,87 @@
1
+ # Initialize-Item
2
+
3
+ Initializes items with the PowerShell automatic properties for each field.
4
+
5
+ ## Syntax
6
+
7
+ Initialize-Item -Item <Item>
8
+
9
+ Initialize-Item -SearchResultItem <SearchResultItem>
10
+
11
+ ## Detailed Description
12
+
13
+ The Initialize-Item command wraps Sitecore item with PowerShell property equivalents of fields for easy assignment of values to fields and automatic saving. This command can also be used to translate the the "Sitecore.ContentSearch.SearchTypes.SearchResultItem" items obtained from the Find-Item command into full Sitecore Items. The alias for the command is Wrap-Item.
14
+
15
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
16
+
17
+ ## Aliases
18
+
19
+ The following abbreviations are aliases for this cmdlet:
20
+
21
+ * Wrap-Item
22
+
23
+ ## Parameters
24
+
25
+ ### -Item <Item>
26
+
27
+ The item to be wrapped/initialized.
28
+
29
+ | Aliases | |
30
+ | :--- | :--- |
31
+ | Required? | true |
32
+ | Position? | named |
33
+ | Default Value | |
34
+ | Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
35
+ | Accept Wildcard Characters? | false |
36
+
37
+ ### -SearchResultItem <SearchResultItem>
38
+
39
+ The item obtained from Find-Item command to be translated into a sitecore item.
40
+
41
+ | Aliases | |
42
+ | :--- | :--- |
43
+ | Required? | true |
44
+ | Position? | named |
45
+ | Default Value | |
46
+ | Accept Pipeline Input? | true \(ByValue\) |
47
+ | Accept Wildcard Characters? | false |
48
+
49
+ ## Inputs
50
+
51
+ The input type is the type of the objects that you can pipe to the cmdlet.
52
+
53
+ * Sitecore.Data.Items.Item
54
+
55
+ Sitecore.ContentSearch.SearchTypes.SearchResultItem
56
+
57
+ ## Outputs
58
+
59
+ The output type is the type of the objects that the cmdlet emits.
60
+
61
+ * Sitecore.Data.Items.Item
62
+
63
+ ## Notes
64
+
65
+ Help Author: Adam Najmanowicz, Michael West
66
+
67
+ ## Examples
68
+
69
+ ### EXAMPLE
70
+
71
+ Initialize the item obtained directly through the Sitecore API with additional PowerShell properties
72
+
73
+ ```powershell
74
+ $item = [Sitecore.Configuration.Factory]::GetDatabase("master").GetItem("/sitecore/content/home");
75
+ #So far the item does not have PowerShell instrumentation wrapped around it yet - the following like wraps $item in those additional properties
76
+ $item = Initialize-Item -Item $item
77
+ # The following line will assign text to the field named MyCustomeTextField and persist the item into the database automatically using the added PowerShell property.
78
+ $item.Title = "New Title"
79
+ ```
80
+
81
+ ## Related Topics
82
+
83
+ * [Find-Item](find-item.md)
84
+ * Get-Item
85
+ * Get-ChildItem
86
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
87
+
@@ -0,0 +1,116 @@
1
+ # Initialize-SearchIndex
2
+
3
+ Rebuilds the Sitecore index.
4
+
5
+ ## Syntax
6
+
7
+ ```powershell
8
+ Initialize-SearchIndex -Index <ISearchIndex> [-IncludeRemoteIndex] [-AsJob]
9
+ Initialize-SearchIndex [-IncludeRemoteIndex] [-Name <String>] [-AsJob]
10
+ Initialize-SearchIndex [-Name <String>] [-AsJob]
11
+ ```
12
+
13
+ ## Detailed Description
14
+
15
+ The Rebuild-SearchIndex command rebuilds Sitecore index. This command is an alias for Initialize-SearchIndex.
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
+ * Rebuild-SearchIndex
24
+
25
+ ## Parameters
26
+
27
+ ### -Index &lt;ISearchIndex&gt;
28
+
29
+ The index instance.
30
+
31
+ | Aliases | |
32
+ | :--- | :--- |
33
+ | Required? | true |
34
+ | Position? | named |
35
+ | Default Value | |
36
+ | Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
37
+ | Accept Wildcard Characters? | false |
38
+
39
+ ### -IncludeRemoteIndex &lt;SwitchParameter&gt;
40
+
41
+ The remote indexing should be triggered.
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
+ ### -AsJob &lt;SwitchParameter&gt;
52
+
53
+ The job created for rebuilding the index should be returned as output.
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
+ ### -Name &lt;String&gt;
64
+
65
+ The name of the index to resume.
66
+
67
+ | Aliases | |
68
+ | :--- | :--- |
69
+ | Required? | false |
70
+ | Position? | named |
71
+ | Default Value | |
72
+ | Accept Pipeline Input? | false |
73
+ | Accept Wildcard Characters? | false |
74
+
75
+ ## Inputs
76
+
77
+ The input type is the type of the objects that you can pipe to the cmdlet.
78
+
79
+ * None or Sitecore.Jobs.Job
80
+
81
+ ## Outputs
82
+
83
+ The output type is the type of the objects that the cmdlet emits.
84
+
85
+ * None
86
+
87
+ ## Notes
88
+
89
+ Help Author: Adam Najmanowicz, Michael West
90
+
91
+ ## Examples
92
+
93
+ ### EXAMPLE 1
94
+
95
+ ```powershell
96
+ The following rebuilds the index.
97
+
98
+ Initialize-SearchIndex -Name sitecore_master_index
99
+ ```
100
+
101
+ ### EXAMPLE 2
102
+
103
+ ```powershell
104
+ The following rebuilds the index.
105
+
106
+ Get-SearchIndex -Name sitecore_master_index | Initialize-SearchIndex
107
+ ```
108
+
109
+ ## Related Topics
110
+
111
+ * [Resume-SearchIndex](resume-searchindex.md)
112
+ * [Suspend-SearchIndex](suspend-searchindex.md)
113
+ * [Stop-SearchIndex](stop-searchindex.md)
114
+ * [Get-SearchIndex](get-searchindex.md)
115
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
116
+
@@ -0,0 +1,85 @@
1
+ # Initialize-SearchIndexItem
2
+
3
+ ## Syntax
4
+
5
+ ```powershell
6
+ Initialize-SearchIndexItem -Item <Item> [-Name <String>] [-AsJob]
7
+ Initialize-SearchIndexItem -Item <Item> [-Name <String>] [-AsJob]
8
+ Initialize-SearchIndexItem -SearchResultItem <SearchResultItem> [-AsJob]
9
+ ```
10
+
11
+ ## Detailed Description
12
+
13
+ Rebuilds the index for a given tree with the specified root item and index name. Supports wildcard filtering for the index name.
14
+
15
+ © 2010-2020 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
16
+
17
+ ## Aliases
18
+
19
+ The following abbreviations are aliases for this cmdlet:
20
+
21
+ * Rebuild-SearchIndexItem
22
+
23
+ ## Parameters
24
+
25
+ ### -Item  &lt;Item&gt;
26
+
27
+ | Aliases | |
28
+ | :--- | :--- |
29
+ | Required? | true |
30
+ | Position? | named |
31
+ | Default Value | |
32
+ | Accept Pipeline Input? | true \(ByValue\) |
33
+ | Accept Wildcard Characters? | false |
34
+
35
+ ### -SearchResultItem  &lt;SearchResultItem&gt;
36
+
37
+ | Aliases | |
38
+ | :--- | :--- |
39
+ | Required? | true |
40
+ | Position? | named |
41
+ | Default Value | |
42
+ | Accept Pipeline Input? | true \(ByValue\) |
43
+ | Accept Wildcard Characters? | false |
44
+
45
+ ### -AsJob  &lt;SwitchParameter&gt;
46
+
47
+ | Aliases | |
48
+ | :--- | :--- |
49
+ | Required? | false |
50
+ | Position? | named |
51
+ | Default Value | |
52
+ | Accept Pipeline Input? | false |
53
+ | Accept Wildcard Characters? | false |
54
+
55
+ ### -Name  &lt;String&gt;
56
+
57
+ | Aliases | |
58
+ | :--- | :--- |
59
+ | Required? | false |
60
+ | Position? | named |
61
+ | Default Value | |
62
+ | Accept Pipeline Input? | false |
63
+ | Accept Wildcard Characters? | false |
64
+
65
+ ## Examples
66
+
67
+ ### EXAMPLE 1
68
+
69
+ The following rebuilds the index for a given tree with the specified root node and index name.
70
+
71
+ ```powershell
72
+ $item = Get-Item -Path "master:" -ID "{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}"
73
+ $indexName = "sitecore_master_index"
74
+ Initialize-SearchIndexItem -Item $item -Name $indexName
75
+ ```
76
+
77
+ ### EXAMPLE 2
78
+
79
+ The following rebuilds the indexes matching the wildcard pattern for a given tree with the specified root node and index name.
80
+
81
+ ```powershell
82
+ $item = Get-Item -Path "master:" -ID "{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}"
83
+ $indexName = "sitecore_*_index"
84
+ Initialize-SearchIndexItem -Item $item -Name $indexName
85
+ ```
@@ -0,0 +1,95 @@
1
+ # Install-Package
2
+
3
+ Installs a Sitecore package from the specified path.
4
+
5
+ ## Syntax
6
+
7
+ Install-Package \[\[-Path\] &lt;String&gt;\] \[-InstallMode &lt;Undefined \| Overwrite \| Merge \| Skip \| SideBySide&gt;\] \[-MergeMode &lt;Undefined \| Clear \| Append \| Merge&gt;\] \[-DisableIndexing\]
8
+
9
+ ## Detailed Description
10
+
11
+ Installs Sitecore package with the ability to provide default responses for merge and overwrite actions. The alias for the command is Import-Package.
12
+
13
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
14
+
15
+ ## Aliases
16
+
17
+ The following abbreviations are aliases for this cmdlet:
18
+
19
+ * Import-Package
20
+
21
+ ## Parameters
22
+
23
+ ### -Path &lt;String&gt;
24
+
25
+ Path to the package file.
26
+
27
+ | Aliases | |
28
+ | :--- | :--- |
29
+ | Required? | false |
30
+ | Position? | 1 |
31
+ | Default Value | |
32
+ | Accept Pipeline Input? | false |
33
+ | Accept Wildcard Characters? | false |
34
+
35
+ ### -InstallMode &lt;InstallMode&gt;
36
+
37
+ Undefined, Overwrite, Merge, Skip, SideBySide
38
+
39
+ | Aliases | |
40
+ | :--- | :--- |
41
+ | Required? | false |
42
+ | Position? | named |
43
+ | Default Value | |
44
+ | Accept Pipeline Input? | false |
45
+ | Accept Wildcard Characters? | false |
46
+
47
+ ### -MergeMode &lt;MergeMode&gt;
48
+
49
+ Undefined, Clear, Append, Merge
50
+
51
+ | Aliases | |
52
+ | :--- | :--- |
53
+ | Required? | false |
54
+ | Position? | named |
55
+ | Default Value | |
56
+ | Accept Pipeline Input? | false |
57
+ | Accept Wildcard Characters? | false |
58
+
59
+ ### -DisableIndexing &lt;SwitchParameter&gt;
60
+
61
+ | Aliases | |
62
+ | :--- | :--- |
63
+ | Required? | false |
64
+ | Position? | named |
65
+ | Default Value | |
66
+ | Accept Pipeline Input? | false |
67
+ | Accept Wildcard Characters? | false |
68
+
69
+ ## Notes
70
+
71
+ Help Author: Adam Najmanowicz, Michael West
72
+
73
+ ## Examples
74
+
75
+ ### EXAMPLE
76
+
77
+ ```powershell
78
+ PS master:\> Install-Package -Path SitecorePowerShellConsole.zip -InstallMode Merge -MergeMode Merge
79
+ ```
80
+
81
+ ## Related Topics
82
+
83
+ * [Export-Package](export-package.md)
84
+ * [Get-Package](get-package.md)
85
+ * [Install-UpdatePackage](install-updatepackage.md)
86
+ * [New-ExplicitFileSource](new-explicitfilesource.md)
87
+ * [New-ExplicitItemSource](new-explicititemsource.md)
88
+ * [New-FileSource](new-filesource.md)
89
+ * [New-ItemSource](new-itemsource.md)
90
+ * [New-Package](new-package.md)
91
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
92
+ * [https://blog.najmanowicz.com/2011/12/19/continuous-deployment-in-sitecore-with-powershell/](https://blog.najmanowicz.com/2011/12/19/continuous-deployment-in-sitecore-with-powershell/)
93
+ * [https://gist.github.com/AdamNaj/f4251cb2645a1bfcddae](https://gist.github.com/AdamNaj/f4251cb2645a1bfcddae)
94
+ * [https://www.youtube.com/watch?v=60BGRDNONo0&list=PLph7ZchYd\_nCypVZSNkudGwPFRqf1na0b&index=7](https://www.youtube.com/watch?v=60BGRDNONo0&list=PLph7ZchYd_nCypVZSNkudGwPFRqf1na0b&index=7)
95
+
@@ -0,0 +1,90 @@
1
+ # Install-UpdatePackage
2
+
3
+ Installs a Sitecore update package from the specified path.
4
+
5
+ ## Syntax
6
+
7
+ Install-UpdatePackage \[-Path\] &lt;String&gt; \[\[-RollbackPackagePath\] &lt;String&gt;\] -UpgradeAction &lt;Preview \| Upgrade&gt; -InstallMode &lt;Install \| Update&gt;
8
+
9
+ ## Detailed Description
10
+
11
+ The Install-UpdatePackage command installs update packages that are used created by Sitecore CMS updates, TDS, and Courier.
12
+
13
+ Install-UpdatePackage. Install-UpdatePackage -Path "C:\Projects\LaunchSitecore.TDSMaster.update" -UpgradeAction {Preview or Upgrade} -InstallMode {Install or Update}
14
+
15
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
16
+
17
+ ## Parameters
18
+
19
+ ### -Path &lt;String&gt;
20
+
21
+ Path to the .update package on the Sitecore server disk drive.
22
+
23
+ | Aliases | |
24
+ | :--- | :--- |
25
+ | Required? | true |
26
+ | Position? | 1 |
27
+ | Default Value | |
28
+ | Accept Pipeline Input? | false |
29
+ | Accept Wildcard Characters? | false |
30
+
31
+ ### -RollbackPackagePath &lt;String&gt;
32
+
33
+ Specify Rollback Package Path - for rolling back if the installation was not functioning as expected.
34
+
35
+ | Aliases | |
36
+ | :--- | :--- |
37
+ | Required? | false |
38
+ | Position? | 1 |
39
+ | Default Value | |
40
+ | Accept Pipeline Input? | false |
41
+ | Accept Wildcard Characters? | false |
42
+
43
+ ### -UpgradeAction &lt;UpgradeAction&gt;
44
+
45
+ Preview / Upgrade
46
+
47
+ | Aliases | |
48
+ | :--- | :--- |
49
+ | Required? | true |
50
+ | Position? | named |
51
+ | Default Value | |
52
+ | Accept Pipeline Input? | false |
53
+ | Accept Wildcard Characters? | false |
54
+
55
+ ### -InstallMode &lt;InstallMode&gt;
56
+
57
+ Install / Update
58
+
59
+ | Aliases | |
60
+ | :--- | :--- |
61
+ | Required? | true |
62
+ | Position? | named |
63
+ | Default Value | |
64
+ | Accept Pipeline Input? | false |
65
+ | Accept Wildcard Characters? | false |
66
+
67
+ ## Outputs
68
+
69
+ The output type is the type of the objects that the cmdlet emits.
70
+
71
+ * Sitecore.Update.Installer.ContingencyEntry
72
+
73
+ ## Notes
74
+
75
+ Help Author: Adam Najmanowicz, Michael West
76
+
77
+ ## Examples
78
+
79
+ ### EXAMPLE
80
+
81
+ ```powershell
82
+ PS master:\> Install-UpdatePackage -Path "C:\Projects\LaunchSitecore.TDSMaster.update" -UpgradeAction Preview -InstallMode Install
83
+ ```
84
+
85
+ ## Related Topics
86
+
87
+ * [Export-UpdatePackage](export-updatepackage.md)
88
+ * [Get-UpdatePackageDiff](get-updatepackagediff.md)
89
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
90
+
@@ -0,0 +1,22 @@
1
+ # Invoke-JavaScript
2
+
3
+ ## Syntax
4
+
5
+ Invoke-JavaScript \[-Script\] &lt;String&gt;
6
+
7
+ ## Detailed Description
8
+
9
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
10
+
11
+ ## Parameters
12
+
13
+ ### -Script  &lt;String&gt;
14
+
15
+ | Aliases | |
16
+ | :--- | :--- |
17
+ | Required? | true |
18
+ | Position? | 1 |
19
+ | Default Value | |
20
+ | Accept Pipeline Input? | true \(ByValue\) |
21
+ | Accept Wildcard Characters? | false |
22
+
@@ -0,0 +1,111 @@
1
+ # Invoke-Script
2
+
3
+ Executes a script from Sitecore PowerShell Extensions Script Library. This command used to be named Execute-Script - a matching alias added for compatibility with older scripts.
4
+
5
+ ## Syntax
6
+
7
+ Invoke-Script \[-Item\] &lt;Item&gt; \[-ArgumentList &lt;Object\[\]&gt;\]
8
+
9
+ Invoke-Script \[-Path\] &lt;String&gt; \[-ArgumentList &lt;Object\[\]&gt;\]
10
+
11
+ ## Detailed Description
12
+
13
+ Executes a script from Sitecore PowerShell Extensions Script Library.
14
+
15
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
16
+
17
+ ## Aliases
18
+
19
+ The following abbreviations are aliases for this cmdlet:
20
+
21
+ * Execute-Script
22
+
23
+ ## Parameters
24
+
25
+ ### -Item &lt;Item&gt;
26
+
27
+ The script item to be executed.
28
+
29
+ | Aliases | |
30
+ | :--- | :--- |
31
+ | Required? | true |
32
+ | Position? | 1 |
33
+ | Default Value | |
34
+ | Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
35
+ | Accept Wildcard Characters? | false |
36
+
37
+ ### -Path &lt;String&gt;
38
+
39
+ Path to the script item to be executed. Path can be absolute or Relavie to Script library root. e.g. the following two commands are equivalent:
40
+
41
+ PS master:\&gt; Invoke-Script 'master:\system\Modules\PowerShell\Script Library\Examples\Script Testing\Long Running Script with Progress Demo' PS master:\&gt; Invoke-Script 'Examples\Script Testing\Long Running Script with Progress Demo'
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
+ ### -ArgumentList &lt;Object\[\]&gt;
52
+
53
+ | Aliases | |
54
+ | :--- | :--- |
55
+ | Required? | false |
56
+ | Position? | named |
57
+ | Default Value | |
58
+ | Accept Pipeline Input? | false |
59
+ | Accept Wildcard Characters? | false |
60
+
61
+ ## Inputs
62
+
63
+ The input type is the type of the objects that you can pipe to the cmdlet.
64
+
65
+ * Sitecore.Data.Items.Item
66
+
67
+ ## Outputs
68
+
69
+ The output type is the type of the objects that the cmdlet emits.
70
+
71
+ * System.Object
72
+
73
+ ## Notes
74
+
75
+ Help Author: Adam Najmanowicz, Michael West
76
+
77
+ ## Examples
78
+
79
+ ### EXAMPLE 1
80
+
81
+ ```powershell
82
+ Invoke-Script 'Examples\Script Testing\Long Running Script with Progress Demo'
83
+ ```
84
+
85
+ ### EXAMPLE 2
86
+
87
+ Run a script with arguments passed in.
88
+
89
+ ```powershell
90
+ $scriptItem = Get-Item -Path "master:" -ID "{35311878-54EF-4E7A-9B95-3B63F5DEE97D}"
91
+
92
+ $arguments = @{
93
+ TemplateId = "{76036F5E-CBCE-46D1-AF0A-4143F9B557AA}"
94
+ }
95
+ $scriptItem | Invoke-Script -ArgumentList $arguments
96
+ ```
97
+
98
+ The arguments are passed and used in the called script like below:
99
+
100
+ ```powershell
101
+ param($params)
102
+ $templateId = $params.templateId
103
+
104
+ Get-ItemReferrer -ID $templateId
105
+ ```
106
+
107
+ ## Related Topics
108
+
109
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
110
+ * [Import-Function](import-function.md)
111
+