@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,180 @@
1
+ # Import-Item
2
+
3
+ Imports \(deserializes\) the specified path from the filesystem on the server as a Sitecore item.
4
+
5
+ ## Syntax
6
+
7
+ Import-Item \[-Database <Database>\] \[-Root <String>\] \[-UseNewId\] \[-DisableEvents\] \[-ForceUpdate\]
8
+
9
+ Import-Item \[-Item\] <Item> \[-Recurse\] \[-Root <String>\] \[-UseNewId\] \[-DisableEvents\] \[-ForceUpdate\]
10
+
11
+ Import-Item \[-Preset\] <IncludeEntry> \[-Root <String>\] \[-UseNewId\] \[-DisableEvents\] \[-ForceUpdate\]
12
+
13
+ Import-Item \[-Path\] <String> \[-Recurse\] \[-Root <String>\] \[-UseNewId\] \[-DisableEvents\] \[-ForceUpdate\]
14
+
15
+ ## Detailed Description
16
+
17
+ The Import-Item command deserializes the specified items.
18
+
19
+ The simplest syntax requires 2 parameters:
20
+
21
+ * -Path : which is a path to the item on the drive but without .item extension. If the item does not exist in the Sitecore tree yet, you need to pass the parent item path.
22
+ * -Root : the directory which is the root of serialization. Trailing slash character is required,
23
+
24
+ e.g.:
25
+
26
+ Import-Item -Path "c:\project\data\serialization\master\sitecore\content\articles" -Root "c:\project\data\serialization\"
27
+
28
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
29
+
30
+ ## Aliases
31
+
32
+ The following abbreviations are aliases for this cmdlet:
33
+
34
+ * Deserialize-Item
35
+
36
+ ## Parameters
37
+
38
+ ### -Database <Database>
39
+
40
+ Database to contain the item to be deserialized.
41
+
42
+ | Aliases | |
43
+ | :--- | :--- |
44
+ | Required? | false |
45
+ | Position? | named |
46
+ | Default Value | |
47
+ | Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
48
+ | Accept Wildcard Characters? | false |
49
+
50
+ ### -Item <Item>
51
+
52
+ The item to be serialized.
53
+
54
+ | Aliases | |
55
+ | :--- | :--- |
56
+ | Required? | true |
57
+ | Position? | 1 |
58
+ | Default Value | |
59
+ | Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
60
+ | Accept Wildcard Characters? | false |
61
+
62
+ ### -Preset <IncludeEntry>
63
+
64
+ Name of the preset to be deserialized.
65
+
66
+ | Aliases | |
67
+ | :--- | :--- |
68
+ | Required? | true |
69
+ | Position? | 1 |
70
+ | Default Value | |
71
+ | Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
72
+ | Accept Wildcard Characters? | false |
73
+
74
+ ### -Path <String>
75
+
76
+ Path to the item on the drive but without .item extension. If the item does not exist in the Sitecore tree yet, you need to pass the parent item path.
77
+
78
+ | Aliases | |
79
+ | :--- | :--- |
80
+ | Required? | true |
81
+ | Position? | 1 |
82
+ | Default Value | |
83
+ | Accept Pipeline Input? | false |
84
+ | Accept Wildcard Characters? | false |
85
+
86
+ ### -Recurse <SwitchParameter>
87
+
88
+ If included in the execution - dederializes both the item and all of its children.
89
+
90
+ | Aliases | |
91
+ | :--- | :--- |
92
+ | Required? | false |
93
+ | Position? | named |
94
+ | Default Value | |
95
+ | Accept Pipeline Input? | false |
96
+ | Accept Wildcard Characters? | false |
97
+
98
+ ### -Root <String>
99
+
100
+ The directory which is the root of serialization. Trailing slash character is required. if not specified the default root will be used.
101
+
102
+ | Aliases | |
103
+ | :--- | :--- |
104
+ | Required? | false |
105
+ | Position? | named |
106
+ | Default Value | |
107
+ | Accept Pipeline Input? | false |
108
+ | Accept Wildcard Characters? | false |
109
+
110
+ ### -UseNewId <SwitchParameter>
111
+
112
+ Tells Sitecore if each of the items should be created with a newly generated ID, e.g. Import-Item -path "c:\project\data\serialization\master\sitecore\content\articles" -root "c:\project\data\serialization\" -usenewid -recurse
113
+
114
+ | Aliases | |
115
+ | :--- | :--- |
116
+ | Required? | false |
117
+ | Position? | named |
118
+ | Default Value | |
119
+ | Accept Pipeline Input? | false |
120
+ | Accept Wildcard Characters? | false |
121
+
122
+ ### -DisableEvents <SwitchParameter>
123
+
124
+ If set Sitecore will use EventDisabler during deserialization, e.g.: Import-Item -path "c:\project\data\serialization\master\sitecore\content\articles" -root "c:\project
125
+
126
+ | Aliases | |
127
+ | :--- | :--- |
128
+ | Required? | false |
129
+ | Position? | named |
130
+ | Default Value | |
131
+ | Accept Pipeline Input? | false |
132
+ | Accept Wildcard Characters? | false |
133
+
134
+ ### -ForceUpdate <SwitchParameter>
135
+
136
+ Forces item to be updated even if it has not changed.
137
+
138
+ | Aliases | |
139
+ | :--- | :--- |
140
+ | Required? | false |
141
+ | Position? | named |
142
+ | Default Value | |
143
+ | Accept Pipeline Input? | false |
144
+ | Accept Wildcard Characters? | false |
145
+
146
+ ## Outputs
147
+
148
+ The output type is the type of the objects that the cmdlet emits.
149
+
150
+ * System.Void
151
+
152
+ ## Notes
153
+
154
+ Help Author: Marek Musielak, Adam Najmanowicz, Michael West
155
+
156
+ ## Examples
157
+
158
+ ### EXAMPLE 1
159
+
160
+ ```powershell
161
+ PS master:\> Import-Item -path "c:\project\data\serialization\master\sitecore\content\articles" -root "c:\project\data\serialization\"
162
+ ```
163
+
164
+ ### EXAMPLE 2
165
+
166
+ ```powershell
167
+ PS master:\> Import-Item -path "c:\project\data\serialization\master\sitecore\content\articles" -root "c:\project\data\serialization\" -recurse
168
+ ```
169
+
170
+ ## Related Topics
171
+
172
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
173
+ * [Export-Item](export-item.md)
174
+ * [Get-Preset](../common/get-preset.md)
175
+ * [https://www.youtube.com/watch?v=60BGRDNONo0&list=PLph7ZchYd\_nCypVZSNkudGwPFRqf1na0b&index=7](https://www.youtube.com/watch?v=60BGRDNONo0&list=PLph7ZchYd_nCypVZSNkudGwPFRqf1na0b&index=7)
176
+ * [https://gist.github.com/AdamNaj/6c86f61510dc3d2d8b2f](https://gist.github.com/AdamNaj/6c86f61510dc3d2d8b2f)
177
+ * [https://stackoverflow.com/questions/20266841/sitecore-powershell-deserialization](https://stackoverflow.com/questions/20266841/sitecore-powershell-deserialization)
178
+ * [https://stackoverflow.com/questions/20195718/sitecore-serialization-powershell](https://stackoverflow.com/questions/20195718/sitecore-serialization-powershell)
179
+ * [https://stackoverflow.com/questions/20283438/sitecore-powershell-deserialization-core-db](https://stackoverflow.com/questions/20283438/sitecore-powershell-deserialization-core-db)
180
+
@@ -0,0 +1,180 @@
1
+ # Import-Item
2
+
3
+ Imports \(deserializes\) the specified path from the filesystem on the server as a Sitecore item.
4
+
5
+ ## Syntax
6
+
7
+ Import-Item \[-Database <Database>\] \[-Root <String>\] \[-UseNewId\] \[-DisableEvents\] \[-ForceUpdate\]
8
+
9
+ Import-Item \[-Item\] <Item> \[-Recurse\] \[-Root <String>\] \[-UseNewId\] \[-DisableEvents\] \[-ForceUpdate\]
10
+
11
+ Import-Item \[-Preset\] <IncludeEntry> \[-Root <String>\] \[-UseNewId\] \[-DisableEvents\] \[-ForceUpdate\]
12
+
13
+ Import-Item \[-Path\] <String> \[-Recurse\] \[-Root <String>\] \[-UseNewId\] \[-DisableEvents\] \[-ForceUpdate\]
14
+
15
+ ## Detailed Description
16
+
17
+ The Import-Item command deserializes the specified items.
18
+
19
+ The simplest syntax requires 2 parameters:
20
+
21
+ * -Path : which is a path to the item on the drive but without .item extension. If the item does not exist in the Sitecore tree yet, you need to pass the parent item path.
22
+ * -Root : the directory which is the root of serialization. Trailing slash character is required,
23
+
24
+ e.g.:
25
+
26
+ Import-Item -Path "c:\project\data\serialization\master\sitecore\content\articles" -Root "c:\project\data\serialization\"
27
+
28
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
29
+
30
+ ## Aliases
31
+
32
+ The following abbreviations are aliases for this cmdlet:
33
+
34
+ * Deserialize-Item
35
+
36
+ ## Parameters
37
+
38
+ ### -Database <Database>
39
+
40
+ Database to contain the item to be deserialized.
41
+
42
+ | Aliases | |
43
+ | :--- | :--- |
44
+ | Required? | false |
45
+ | Position? | named |
46
+ | Default Value | |
47
+ | Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
48
+ | Accept Wildcard Characters? | false |
49
+
50
+ ### -Item <Item>
51
+
52
+ The item to be serialized.
53
+
54
+ | Aliases | |
55
+ | :--- | :--- |
56
+ | Required? | true |
57
+ | Position? | 1 |
58
+ | Default Value | |
59
+ | Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
60
+ | Accept Wildcard Characters? | false |
61
+
62
+ ### -Preset <IncludeEntry>
63
+
64
+ Name of the preset to be deserialized.
65
+
66
+ | Aliases | |
67
+ | :--- | :--- |
68
+ | Required? | true |
69
+ | Position? | 1 |
70
+ | Default Value | |
71
+ | Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
72
+ | Accept Wildcard Characters? | false |
73
+
74
+ ### -Path <String>
75
+
76
+ Path to the item on the drive but without .item extension. If the item does not exist in the Sitecore tree yet, you need to pass the parent item path.
77
+
78
+ | Aliases | |
79
+ | :--- | :--- |
80
+ | Required? | true |
81
+ | Position? | 1 |
82
+ | Default Value | |
83
+ | Accept Pipeline Input? | false |
84
+ | Accept Wildcard Characters? | false |
85
+
86
+ ### -Recurse <SwitchParameter>
87
+
88
+ If included in the execution - dederializes both the item and all of its children.
89
+
90
+ | Aliases | |
91
+ | :--- | :--- |
92
+ | Required? | false |
93
+ | Position? | named |
94
+ | Default Value | |
95
+ | Accept Pipeline Input? | false |
96
+ | Accept Wildcard Characters? | false |
97
+
98
+ ### -Root <String>
99
+
100
+ The directory which is the root of serialization. Trailing slash character is required. if not specified the default root will be used.
101
+
102
+ | Aliases | |
103
+ | :--- | :--- |
104
+ | Required? | false |
105
+ | Position? | named |
106
+ | Default Value | |
107
+ | Accept Pipeline Input? | false |
108
+ | Accept Wildcard Characters? | false |
109
+
110
+ ### -UseNewId <SwitchParameter>
111
+
112
+ Tells Sitecore if each of the items should be created with a newly generated ID, e.g. Import-Item -path "c:\project\data\serialization\master\sitecore\content\articles" -root "c:\project\data\serialization\" -usenewid -recurse
113
+
114
+ | Aliases | |
115
+ | :--- | :--- |
116
+ | Required? | false |
117
+ | Position? | named |
118
+ | Default Value | |
119
+ | Accept Pipeline Input? | false |
120
+ | Accept Wildcard Characters? | false |
121
+
122
+ ### -DisableEvents <SwitchParameter>
123
+
124
+ If set Sitecore will use EventDisabler during deserialization, e.g.: Import-Item -path "c:\project\data\serialization\master\sitecore\content\articles" -root "c:\project
125
+
126
+ | Aliases | |
127
+ | :--- | :--- |
128
+ | Required? | false |
129
+ | Position? | named |
130
+ | Default Value | |
131
+ | Accept Pipeline Input? | false |
132
+ | Accept Wildcard Characters? | false |
133
+
134
+ ### -ForceUpdate <SwitchParameter>
135
+
136
+ Forces item to be updated even if it has not changed.
137
+
138
+ | Aliases | |
139
+ | :--- | :--- |
140
+ | Required? | false |
141
+ | Position? | named |
142
+ | Default Value | |
143
+ | Accept Pipeline Input? | false |
144
+ | Accept Wildcard Characters? | false |
145
+
146
+ ## Outputs
147
+
148
+ The output type is the type of the objects that the cmdlet emits.
149
+
150
+ * System.Void
151
+
152
+ ## Notes
153
+
154
+ Help Author: Marek Musielak, Adam Najmanowicz, Michael West
155
+
156
+ ## Examples
157
+
158
+ ### EXAMPLE 1
159
+
160
+ ```powershell
161
+ PS master:\> Import-Item -path "c:\project\data\serialization\master\sitecore\content\articles" -root "c:\project\data\serialization\"
162
+ ```
163
+
164
+ ### EXAMPLE 2
165
+
166
+ ```powershell
167
+ PS master:\> Import-Item -path "c:\project\data\serialization\master\sitecore\content\articles" -root "c:\project\data\serialization\" -recurse
168
+ ```
169
+
170
+ ## Related Topics
171
+
172
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
173
+ * [Export-Item](export-item.md)
174
+ * [Get-Preset](../common/get-preset.md)
175
+ * [https://www.youtube.com/watch?v=60BGRDNONo0&list=PLph7ZchYd\_nCypVZSNkudGwPFRqf1na0b&index=7](https://www.youtube.com/watch?v=60BGRDNONo0&list=PLph7ZchYd_nCypVZSNkudGwPFRqf1na0b&index=7)
176
+ * [https://gist.github.com/AdamNaj/6c86f61510dc3d2d8b2f](https://gist.github.com/AdamNaj/6c86f61510dc3d2d8b2f)
177
+ * [https://stackoverflow.com/questions/20266841/sitecore-powershell-deserialization](https://stackoverflow.com/questions/20266841/sitecore-powershell-deserialization)
178
+ * [https://stackoverflow.com/questions/20195718/sitecore-serialization-powershell](https://stackoverflow.com/questions/20195718/sitecore-serialization-powershell)
179
+ * [https://stackoverflow.com/questions/20283438/sitecore-powershell-deserialization-core-db](https://stackoverflow.com/questions/20283438/sitecore-powershell-deserialization-core-db)
180
+
@@ -0,0 +1,137 @@
1
+ # Import-Role
2
+
3
+ Imports \(deserializes\) Sitecore roles from the Sitecore server filesystem.
4
+
5
+ ## Syntax
6
+
7
+ Import-Role \[-Identity\] <AccountIdentity> \[-Root <String>\]
8
+
9
+ Import-Role -Filter <String> \[-Root <String>\]
10
+
11
+ Import-Role \[-Role\] <User> \[-Root <String>\]
12
+
13
+ Import-Role -Path <String>
14
+
15
+ ## Detailed Description
16
+
17
+ The Import-Role command imports \(deserializes\) Sitecore roles from the Sitecore server filesystem.
18
+
19
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
20
+
21
+ ## Parameters
22
+
23
+ ### -Identity <AccountIdentity>
24
+
25
+ Specifies the Sitecore role to be deserialized by providing one of the following values.
26
+
27
+ ```powershell
28
+ Local Name
29
+ Example: developer
30
+ Fully Qualified Name
31
+ Example: sitecore\developer
32
+ ```
33
+
34
+ | Aliases | |
35
+ | :--- | :--- |
36
+ | Required? | true |
37
+ | Position? | 1 |
38
+ | Default Value | |
39
+ | Accept Pipeline Input? | true \(ByValue\) |
40
+ | Accept Wildcard Characters? | false |
41
+
42
+ ### -Filter <String>
43
+
44
+ Specifies a simple pattern to match Sitecore roles.
45
+
46
+ Examples: The following examples show how to use the filter syntax.
47
+
48
+ To get all the roles, use the asterisk wildcard: Import-Role -Filter \*
49
+
50
+ To get all the roles in a domain use the following command: Import-Role -Filter "sitecore\*"
51
+
52
+ | Aliases | |
53
+ | :--- | :--- |
54
+ | Required? | true |
55
+ | Position? | named |
56
+ | Default Value | |
57
+ | Accept Pipeline Input? | false |
58
+ | Accept Wildcard Characters? | false |
59
+
60
+ ### -Role <User>
61
+
62
+ An existing role object to be restored to the version from disk
63
+
64
+ | Aliases | |
65
+ | :--- | :--- |
66
+ | Required? | true |
67
+ | Position? | 1 |
68
+ | Default Value | |
69
+ | Accept Pipeline Input? | true \(ByValue\) |
70
+ | Accept Wildcard Characters? | false |
71
+
72
+ ### -Path <String>
73
+
74
+ Path to the file the role should be loaded from.
75
+
76
+ | Aliases | |
77
+ | :--- | :--- |
78
+ | Required? | true |
79
+ | Position? | named |
80
+ | Default Value | |
81
+ | Accept Pipeline Input? | false |
82
+ | Accept Wildcard Characters? | false |
83
+
84
+ ### -Root <String>
85
+
86
+ Specifies the serialization root directory. If this parameter is not specified - the default Sitecore serialization folder will be used \(unless you're reading from an explicit location with the -Path parameter\).
87
+
88
+ | Aliases | |
89
+ | :--- | :--- |
90
+ | Required? | false |
91
+ | Position? | named |
92
+ | Default Value | |
93
+ | Accept Pipeline Input? | false |
94
+ | Accept Wildcard Characters? | false |
95
+
96
+ ## Inputs
97
+
98
+ The input type is the type of the objects that you can pipe to the cmdlet.
99
+
100
+ * System.String
101
+
102
+ Sitecore.Security.Accounts.Role
103
+
104
+ ## Notes
105
+
106
+ Help Author: Adam Najmanowicz, Michael West
107
+
108
+ ## Examples
109
+
110
+ ### EXAMPLE 1
111
+
112
+ ```powershell
113
+ PS master:\> Import-Role -Identity sitecore\Author
114
+ ```
115
+
116
+ ### EXAMPLE 2
117
+
118
+ ```powershell
119
+ PS master:\> Import-Role -Filter sitecore\*
120
+ ```
121
+
122
+ ### EXAMPLE 3
123
+
124
+ ```powershell
125
+ PS master:\> Import-Role -Root C:\my\Serialization\Folder\ -Filter *\*
126
+ ```
127
+
128
+ ### EXAMPLE 4
129
+
130
+ ```powershell
131
+ PS master:\> Import-Role -Path C:\my\Serialization\Folder\Admins.role
132
+ ```
133
+
134
+ ## Related Topics
135
+
136
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
137
+
@@ -0,0 +1,137 @@
1
+ # Import-User
2
+
3
+ Imports \(deserializes\) Sitecore users from the Sitecore server filesystem.
4
+
5
+ ## Syntax
6
+
7
+ Import-User \[-Identity\] <AccountIdentity> \[-Root <String>\]
8
+
9
+ Import-User -Filter <String> \[-Root <String>\]
10
+
11
+ Import-User \[-User\] <User> \[-Root <String>\]
12
+
13
+ Import-User -Path <String>
14
+
15
+ ## Detailed Description
16
+
17
+ The Import-User command imports \(deserializes\) Sitecore users from the Sitecore server filesystem.
18
+
19
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
20
+
21
+ ## Parameters
22
+
23
+ ### -Identity <AccountIdentity>
24
+
25
+ Specifies the Sitecore user to be deserialized by providing one of the following values.
26
+
27
+ ```powershell
28
+ Local Name
29
+ Example: developer
30
+ Fully Qualified Name
31
+ Example: sitecore\developer
32
+ ```
33
+
34
+ | Aliases | |
35
+ | :--- | :--- |
36
+ | Required? | true |
37
+ | Position? | 1 |
38
+ | Default Value | |
39
+ | Accept Pipeline Input? | true \(ByValue\) |
40
+ | Accept Wildcard Characters? | false |
41
+
42
+ ### -Filter <String>
43
+
44
+ Specifies a simple pattern to match Sitecore users.
45
+
46
+ Examples: The following examples show how to use the filter syntax.
47
+
48
+ To get all the roles, use the asterisk wildcard: Import-User -Filter \*
49
+
50
+ To get all the roles in a domain use the following command: Import-User -Filter "sitecore\*"
51
+
52
+ | Aliases | |
53
+ | :--- | :--- |
54
+ | Required? | true |
55
+ | Position? | named |
56
+ | Default Value | |
57
+ | Accept Pipeline Input? | false |
58
+ | Accept Wildcard Characters? | false |
59
+
60
+ ### -User <User>
61
+
62
+ User object retrieved from the Sitecore API or using the Get-User command identifying the user account to be deserialized.
63
+
64
+ | Aliases | |
65
+ | :--- | :--- |
66
+ | Required? | true |
67
+ | Position? | 1 |
68
+ | Default Value | |
69
+ | Accept Pipeline Input? | true \(ByValue\) |
70
+ | Accept Wildcard Characters? | false |
71
+
72
+ ### -Path <String>
73
+
74
+ Path to the file the user should be loaded from.
75
+
76
+ | Aliases | |
77
+ | :--- | :--- |
78
+ | Required? | true |
79
+ | Position? | named |
80
+ | Default Value | |
81
+ | Accept Pipeline Input? | false |
82
+ | Accept Wildcard Characters? | false |
83
+
84
+ ### -Root <String>
85
+
86
+ Specifies the serialization root directory. If this parameter is not specified - the default Sitecore serialization folder will be used \(unless you're reading from an explicit location with the -Path parameter\).
87
+
88
+ | Aliases | |
89
+ | :--- | :--- |
90
+ | Required? | false |
91
+ | Position? | named |
92
+ | Default Value | |
93
+ | Accept Pipeline Input? | false |
94
+ | Accept Wildcard Characters? | false |
95
+
96
+ ## Inputs
97
+
98
+ The input type is the type of the objects that you can pipe to the cmdlet.
99
+
100
+ * System.String
101
+
102
+ Sitecore.Security.Accounts.User
103
+
104
+ ## Notes
105
+
106
+ Help Author: Adam Najmanowicz, Michael West
107
+
108
+ ## Examples
109
+
110
+ ### EXAMPLE 1
111
+
112
+ ```powershell
113
+ PS master:\> Import-User -Identity sitecore\Admin
114
+ ```
115
+
116
+ ### EXAMPLE 2
117
+
118
+ ```powershell
119
+ PS master:\> Import-User -Filter sitecore\*
120
+ ```
121
+
122
+ ### EXAMPLE 3
123
+
124
+ ```powershell
125
+ PS master:\> Import-User -Root C:\my\Serialization\Folder\ -Filter *\*
126
+ ```
127
+
128
+ ### EXAMPLE 4
129
+
130
+ ```powershell
131
+ PS master:\> Import-User -Path C:\my\Serialization\Folder\Admin.user
132
+ ```
133
+
134
+ ## Related Topics
135
+
136
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
137
+