@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.
- package/README.md +3 -0
- package/dist/bundle.js +106 -12
- package/dist/register.js +7 -0
- package/dist/register.js.map +1 -1
- package/dist/tools/powershell/documentation/add-basetemplate.md +137 -0
- package/dist/tools/powershell/documentation/add-itemacl.md +254 -0
- package/dist/tools/powershell/documentation/add-itemversion.md +231 -0
- package/dist/tools/powershell/documentation/add-placeholdersetting.md +410 -0
- package/dist/tools/powershell/documentation/add-rendering.md +217 -0
- package/dist/tools/powershell/documentation/add-rolemember.md +88 -0
- package/dist/tools/powershell/documentation/clear-itemacl.md +131 -0
- package/dist/tools/powershell/documentation/close-window.md +32 -0
- package/dist/tools/powershell/documentation/commands-list.md +134 -0
- package/dist/tools/powershell/documentation/convertfrom-clixml.md +67 -0
- package/dist/tools/powershell/documentation/convertfrom-itemclone.md +118 -0
- package/dist/tools/powershell/documentation/convertto-clixml.md +66 -0
- package/dist/tools/powershell/documentation/disable-user.md +89 -0
- package/dist/tools/powershell/documentation/enable-user.md +89 -0
- package/dist/tools/powershell/documentation/expand-token.md +144 -0
- package/dist/tools/powershell/documentation/export-item.md +165 -0
- package/dist/tools/powershell/documentation/export-package.md +129 -0
- package/dist/tools/powershell/documentation/export-role.md +150 -0
- package/dist/tools/powershell/documentation/export-updatepackage.md +111 -0
- package/dist/tools/powershell/documentation/export-user.md +147 -0
- package/dist/tools/powershell/documentation/find-item.md +718 -0
- package/dist/tools/powershell/documentation/get-archive.md +73 -0
- package/dist/tools/powershell/documentation/get-archiveitem.md +138 -0
- package/dist/tools/powershell/documentation/get-cache.md +62 -0
- package/dist/tools/powershell/documentation/get-database.md +96 -0
- package/dist/tools/powershell/documentation/get-domain.md +75 -0
- package/dist/tools/powershell/documentation/get-item.md +186 -0
- package/dist/tools/powershell/documentation/get-itemacl.md +168 -0
- package/dist/tools/powershell/documentation/get-itemclone.md +100 -0
- package/dist/tools/powershell/documentation/get-itemclonenotification.md +95 -0
- package/dist/tools/powershell/documentation/get-itemfield.md +182 -0
- package/dist/tools/powershell/documentation/get-itemreference.md +152 -0
- package/dist/tools/powershell/documentation/get-itemreferrer.md +154 -0
- package/dist/tools/powershell/documentation/get-itemtemplate.md +152 -0
- package/dist/tools/powershell/documentation/get-itemworkflowevent.md +133 -0
- package/dist/tools/powershell/documentation/get-layout.md +142 -0
- package/dist/tools/powershell/documentation/get-layoutdevice.md +97 -0
- package/dist/tools/powershell/documentation/get-package.md +63 -0
- package/dist/tools/powershell/documentation/get-placeholdersetting.md +477 -0
- package/dist/tools/powershell/documentation/get-preset.md +70 -0
- package/dist/tools/powershell/documentation/get-rendering.md +248 -0
- package/dist/tools/powershell/documentation/get-renderingparameter.md +84 -0
- package/dist/tools/powershell/documentation/get-role.md +134 -0
- package/dist/tools/powershell/documentation/get-rolemember.md +131 -0
- package/dist/tools/powershell/documentation/get-scriptsession.md +128 -0
- package/dist/tools/powershell/documentation/get-searchindex.md +92 -0
- package/dist/tools/powershell/documentation/get-session.md +107 -0
- package/dist/tools/powershell/documentation/get-sitecorejob.md +102 -0
- package/dist/tools/powershell/documentation/get-spemodule.md +134 -0
- package/dist/tools/powershell/documentation/get-spemodulefeatureroot.md +113 -0
- package/dist/tools/powershell/documentation/get-taskschedule.md +136 -0
- package/dist/tools/powershell/documentation/get-updatepackagediff.md +110 -0
- package/dist/tools/powershell/documentation/get-user.md +193 -0
- package/dist/tools/powershell/documentation/get-useragent.md +38 -0
- package/dist/tools/powershell/documentation/import-function.md +83 -0
- package/dist/tools/powershell/documentation/import-item-1.md +180 -0
- package/dist/tools/powershell/documentation/import-item.md +180 -0
- package/dist/tools/powershell/documentation/import-role.md +137 -0
- package/dist/tools/powershell/documentation/import-user.md +137 -0
- package/dist/tools/powershell/documentation/initialize-item.md +87 -0
- package/dist/tools/powershell/documentation/initialize-searchindex.md +116 -0
- package/dist/tools/powershell/documentation/initialize-searchindexitem.md +85 -0
- package/dist/tools/powershell/documentation/install-package.md +95 -0
- package/dist/tools/powershell/documentation/install-updatepackage.md +90 -0
- package/dist/tools/powershell/documentation/invoke-javascript.md +22 -0
- package/dist/tools/powershell/documentation/invoke-script.md +111 -0
- package/dist/tools/powershell/documentation/invoke-shellcommand.md +144 -0
- package/dist/tools/powershell/documentation/invoke-workflow.md +142 -0
- package/dist/tools/powershell/documentation/lock-item.md +157 -0
- package/dist/tools/powershell/documentation/login-user.md +56 -0
- package/dist/tools/powershell/documentation/logout-user.md +30 -0
- package/dist/tools/powershell/documentation/merge-layout.md +102 -0
- package/dist/tools/powershell/documentation/new-domain.md +72 -0
- package/dist/tools/powershell/documentation/new-explicitfilesource.md +104 -0
- package/dist/tools/powershell/documentation/new-explicititemsource.md +146 -0
- package/dist/tools/powershell/documentation/new-filesource.md +128 -0
- package/dist/tools/powershell/documentation/new-itemacl.md +175 -0
- package/dist/tools/powershell/documentation/new-itemclone.md +139 -0
- package/dist/tools/powershell/documentation/new-itemsource.md +171 -0
- package/dist/tools/powershell/documentation/new-itemworkflowevent.md +140 -0
- package/dist/tools/powershell/documentation/new-package.md +81 -0
- package/dist/tools/powershell/documentation/new-placeholdersetting.md +255 -0
- package/dist/tools/powershell/documentation/new-rendering.md +243 -0
- package/dist/tools/powershell/documentation/new-role.md +56 -0
- package/dist/tools/powershell/documentation/new-securitysource.md +176 -0
- package/dist/tools/powershell/documentation/new-user.md +161 -0
- package/dist/tools/powershell/documentation/new-usingblock.md +95 -0
- package/dist/tools/powershell/documentation/out-download.md +123 -0
- package/dist/tools/powershell/documentation/protect-item.md +120 -0
- package/dist/tools/powershell/documentation/publish-item.md +224 -0
- package/dist/tools/powershell/documentation/read-variable.md +252 -0
- package/dist/tools/powershell/documentation/receive-file.md +244 -0
- package/dist/tools/powershell/documentation/receive-itemclonenotification.md +116 -0
- package/dist/tools/powershell/documentation/receive-scriptsession.md +108 -0
- package/dist/tools/powershell/documentation/remove-archiveitem.md +125 -0
- package/dist/tools/powershell/documentation/remove-basetemplate.md +137 -0
- package/dist/tools/powershell/documentation/remove-domain.md +70 -0
- package/dist/tools/powershell/documentation/remove-itemversion.md +209 -0
- package/dist/tools/powershell/documentation/remove-layout.md +151 -0
- package/dist/tools/powershell/documentation/remove-placeholdersetting.md +478 -0
- package/dist/tools/powershell/documentation/remove-rendering.md +253 -0
- package/dist/tools/powershell/documentation/remove-renderingparameter.md +83 -0
- package/dist/tools/powershell/documentation/remove-role.md +70 -0
- package/dist/tools/powershell/documentation/remove-rolemember.md +79 -0
- package/dist/tools/powershell/documentation/remove-scriptsession.md +72 -0
- package/dist/tools/powershell/documentation/remove-searchindexitem.md +79 -0
- package/dist/tools/powershell/documentation/remove-session.md +77 -0
- package/dist/tools/powershell/documentation/remove-user.md +97 -0
- package/dist/tools/powershell/documentation/reset-itemfield.md +149 -0
- package/dist/tools/powershell/documentation/reset-layout.md +130 -0
- package/dist/tools/powershell/documentation/restart-application.md +30 -0
- package/dist/tools/powershell/documentation/restore-archiveitem.md +126 -0
- package/dist/tools/powershell/documentation/resume-searchindex.md +84 -0
- package/dist/tools/powershell/documentation/send-file.md +160 -0
- package/dist/tools/powershell/documentation/send-sheermessage.md +66 -0
- package/dist/tools/powershell/documentation/set-hostproperty.md +90 -0
- package/dist/tools/powershell/documentation/set-itemacl.md +158 -0
- package/dist/tools/powershell/documentation/set-itemtemplate.md +156 -0
- package/dist/tools/powershell/documentation/set-layout.md +166 -0
- package/dist/tools/powershell/documentation/set-rendering.md +213 -0
- package/dist/tools/powershell/documentation/set-renderingparameter.md +97 -0
- package/dist/tools/powershell/documentation/set-user.md +221 -0
- package/dist/tools/powershell/documentation/set-userpassword.md +109 -0
- package/dist/tools/powershell/documentation/show-alert.md +53 -0
- package/dist/tools/powershell/documentation/show-application.md +150 -0
- package/dist/tools/powershell/documentation/show-confirm.md +61 -0
- package/dist/tools/powershell/documentation/show-fieldeditor.md +231 -0
- package/dist/tools/powershell/documentation/show-input.md +129 -0
- package/dist/tools/powershell/documentation/show-listview.md +276 -0
- package/dist/tools/powershell/documentation/show-modaldialog.md +137 -0
- package/dist/tools/powershell/documentation/show-result.md +158 -0
- package/dist/tools/powershell/documentation/show-yesnocancel.md +92 -0
- package/dist/tools/powershell/documentation/start-scriptsession.md +230 -0
- package/dist/tools/powershell/documentation/start-taskschedule.md +124 -0
- package/dist/tools/powershell/documentation/stop-scriptsession.md +78 -0
- package/dist/tools/powershell/documentation/stop-searchindex.md +84 -0
- package/dist/tools/powershell/documentation/suspend-searchindex.md +84 -0
- package/dist/tools/powershell/documentation/switch-rendering.md +248 -0
- package/dist/tools/powershell/documentation/test-account.md +74 -0
- package/dist/tools/powershell/documentation/test-basetemplate.md +97 -0
- package/dist/tools/powershell/documentation/test-itemacl.md +182 -0
- package/dist/tools/powershell/documentation/test-rule.md +111 -0
- package/dist/tools/powershell/documentation/unlock-item.md +124 -0
- package/dist/tools/powershell/documentation/unlock-user.md +84 -0
- package/dist/tools/powershell/documentation/unprotect-item.md +124 -0
- package/dist/tools/powershell/documentation/update-itemreferrer.md +234 -0
- package/dist/tools/powershell/documentation/update-listview.md +139 -0
- package/dist/tools/powershell/documentation/update-searchindexitem.md +79 -0
- package/dist/tools/powershell/documentation/wait-scriptsession.md +100 -0
- package/dist/tools/powershell/documentation/write-log.md +82 -0
- package/dist/tools/powershell/get-powershell-documentation.d.ts +2 -0
- package/dist/tools/powershell/get-powershell-documentation.js +47 -0
- package/dist/tools/powershell/get-powershell-documentation.js.map +1 -0
- package/dist/tools/powershell/run-powershell-script.d.ts +3 -0
- package/dist/tools/powershell/run-powershell-script.js +13 -0
- package/dist/tools/powershell/run-powershell-script.js.map +1 -0
- package/dist/tools/sitecore-cli/get-sitecore-cli-documentation.d.ts +3 -0
- package/dist/tools/sitecore-cli/get-sitecore-cli-documentation.js +24 -0
- package/dist/tools/sitecore-cli/get-sitecore-cli-documentation.js.map +1 -0
- package/dist/tools/sitecore-cli/sitecore-cli-documentation.md +70 -0
- package/package.json +8 -8
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Get-Archive
|
|
2
|
+
|
|
3
|
+
Returns Sitecore database archives.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
Get-Archive \[\[-Database\] <Database>\] \[\[-Name\] <String>\]
|
|
8
|
+
|
|
9
|
+
## Detailed Description
|
|
10
|
+
|
|
11
|
+
The Get-Archive command returns Sitecore archives in context of the specified database.
|
|
12
|
+
|
|
13
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
### -Name <String>
|
|
18
|
+
|
|
19
|
+
Name of the archive to retrieve.
|
|
20
|
+
|
|
21
|
+
| Aliases | |
|
|
22
|
+
| :--- | :--- |
|
|
23
|
+
| Required? | false |
|
|
24
|
+
| Position? | 1 |
|
|
25
|
+
| Default Value | |
|
|
26
|
+
| Accept Pipeline Input? | false |
|
|
27
|
+
| Accept Wildcard Characters? | false |
|
|
28
|
+
|
|
29
|
+
### -Database <Database>
|
|
30
|
+
|
|
31
|
+
Database for which the archives should be retrieved.
|
|
32
|
+
|
|
33
|
+
| Aliases | |
|
|
34
|
+
| :--- | :--- |
|
|
35
|
+
| Required? | false |
|
|
36
|
+
| Position? | 2 |
|
|
37
|
+
| Default Value | |
|
|
38
|
+
| Accept Pipeline Input? | true \(ByValue\) |
|
|
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
|
+
* Sitecore.Data.Database
|
|
46
|
+
|
|
47
|
+
## Outputs
|
|
48
|
+
|
|
49
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
50
|
+
|
|
51
|
+
* Sitecore.Data.Archiving.Archive
|
|
52
|
+
|
|
53
|
+
## Notes
|
|
54
|
+
|
|
55
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
56
|
+
|
|
57
|
+
## Examples
|
|
58
|
+
|
|
59
|
+
### EXAMPLE
|
|
60
|
+
|
|
61
|
+
```powershell
|
|
62
|
+
PS master:\> Get-Archive -Database "master"
|
|
63
|
+
|
|
64
|
+
Name Items
|
|
65
|
+
---- -----
|
|
66
|
+
archive 0
|
|
67
|
+
recyclebin 1950
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Related Topics
|
|
71
|
+
|
|
72
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
73
|
+
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# Get-ArchiveItem
|
|
2
|
+
|
|
3
|
+
Retrieves a list of items found in the specified archive.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
```powershell
|
|
8
|
+
Get-ArchiveItem -Archive <Archive>
|
|
9
|
+
Get-ArchiveItem -Archive <Archive> [-ItemId <ID>]
|
|
10
|
+
Get-ArchiveItem -Archive <Archive> [-Identity <AccountIdentity>]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Detailed Description
|
|
14
|
+
|
|
15
|
+
The Get-ArchiveItem command returns items found in the "archive" and "recyclebin" archives.
|
|
16
|
+
|
|
17
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
18
|
+
|
|
19
|
+
## Parameters
|
|
20
|
+
|
|
21
|
+
### -Archive <Archive>
|
|
22
|
+
|
|
23
|
+
Specifies the archive to use when determining which ArchiveEntry items to process. Use Get-Archive to find the appropriate archive.
|
|
24
|
+
|
|
25
|
+
| Aliases | |
|
|
26
|
+
| :--- | :--- |
|
|
27
|
+
| Required? | true |
|
|
28
|
+
| Position? | named |
|
|
29
|
+
| Default Value | |
|
|
30
|
+
| Accept Pipeline Input? | false|
|
|
31
|
+
| Accept Wildcard Characters? | false |
|
|
32
|
+
|
|
33
|
+
### -ItemId <ID>
|
|
34
|
+
|
|
35
|
+
Specifies the ID for the original item that should be processed. This is NOT the ArchivalId.
|
|
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
|
+
Specifies the user responsible for moving the item to the archive.
|
|
48
|
+
|
|
49
|
+
| Aliases | |
|
|
50
|
+
| :--- | :--- |
|
|
51
|
+
| Required? | false |
|
|
52
|
+
| Position? | named |
|
|
53
|
+
| Default Value | |
|
|
54
|
+
| Accept Pipeline Input? | false |
|
|
55
|
+
| Accept Wildcard Characters? | false |
|
|
56
|
+
|
|
57
|
+
## Inputs
|
|
58
|
+
|
|
59
|
+
None.
|
|
60
|
+
|
|
61
|
+
## Outputs
|
|
62
|
+
|
|
63
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
64
|
+
|
|
65
|
+
* Sitecore.Data.Archiving.ArchiveEntry
|
|
66
|
+
|
|
67
|
+
## Notes
|
|
68
|
+
|
|
69
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
70
|
+
|
|
71
|
+
## Examples
|
|
72
|
+
|
|
73
|
+
### EXAMPLE 1
|
|
74
|
+
|
|
75
|
+
The following returns all items found in the specified archive.
|
|
76
|
+
|
|
77
|
+
```powershell
|
|
78
|
+
$database = Get-Database -Name "master"
|
|
79
|
+
$archiveName = "recyclebin"
|
|
80
|
+
$archive = Get-Archive -Database $database -Name $archiveName
|
|
81
|
+
Get-ArchiveItem -Archive $archive
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### EXAMPLE 2
|
|
85
|
+
|
|
86
|
+
The following returns items matching the ItemId found in the specified archive.
|
|
87
|
+
|
|
88
|
+
```powershell
|
|
89
|
+
$database = Get-Database -Name "master"
|
|
90
|
+
$archiveName = "recyclebin"
|
|
91
|
+
$archive = Get-Archive -Database $database -Name $archiveName
|
|
92
|
+
Get-ArchiveItem -Archive $archive -ItemId "{1BB32980-66B4-4ADA-9170-10A9D3336613}"
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### EXAMPLE 3
|
|
96
|
+
|
|
97
|
+
The following returns items moved to the recycle bin by the user found in the specified archive.
|
|
98
|
+
|
|
99
|
+
```powershell
|
|
100
|
+
$database = Get-Database -Name "master"
|
|
101
|
+
$archiveName = "recyclebin"
|
|
102
|
+
$archive = Get-Archive -Database $database -Name $archiveName
|
|
103
|
+
Get-ArchiveItem -Archive $archive -Identity "sitecore\admin"
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### EXAMPLE 4
|
|
107
|
+
|
|
108
|
+
The following demonstrates changing the archive date on an item followed by retrieving the archived item.
|
|
109
|
+
|
|
110
|
+
```powershell
|
|
111
|
+
$item = Get-Item -Path "master:" -ID "{1BB32980-66B4-4ADA-9170-10A9D3336613}"
|
|
112
|
+
$date = $item[[Sitecore.FieldIDs]::ArchiveDate]
|
|
113
|
+
$serverTime = [Sitecore.DateUtil]::IsoDateToServerTimeIsoDate($date)
|
|
114
|
+
$serverTimeDateTime = [Sitecore.DateUtil]::IsoDateToDateTime($serverTime, [datetime]::MinValue)
|
|
115
|
+
|
|
116
|
+
# Here you could add more time to the $serverTimeDateTime
|
|
117
|
+
|
|
118
|
+
$utcTimeDateTime = [Sitecore.DateUtil]::ToUniversalTime($serverTimeDateTime)
|
|
119
|
+
$isoTime = [Sitecore.DateUtil]::ToIsoDate($utcTimeDateTime)
|
|
120
|
+
|
|
121
|
+
$item.Editing.BeginEdit()
|
|
122
|
+
$item[[Sitecore.FieldIDs]::ArchiveDate] = $isoTime
|
|
123
|
+
$item.Editing.EndEdit()
|
|
124
|
+
|
|
125
|
+
# Some time after the date has passed
|
|
126
|
+
$database = Get-Database -Name "master"
|
|
127
|
+
$archiveName = "archive"
|
|
128
|
+
$archive = Get-Archive -Database $database -Name $archiveName
|
|
129
|
+
Get-ArchiveItem -Archive $archive -ItemId "{1BB32980-66B4-4ADA-9170-10A9D3336613}"
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Related Topics
|
|
133
|
+
|
|
134
|
+
* Remove-ArchiveItem
|
|
135
|
+
* Restore-ArchiveItem
|
|
136
|
+
* Remove-Item
|
|
137
|
+
* Remove-ItemVersion
|
|
138
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Get-Cache
|
|
2
|
+
|
|
3
|
+
Retrieves a Sitecore cache.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
Get-Cache \[\[-Name\] <String>\]
|
|
8
|
+
|
|
9
|
+
## Detailed Description
|
|
10
|
+
|
|
11
|
+
The Get-Cache command retrieves a Sitecore cache.
|
|
12
|
+
|
|
13
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
### -Name <String>
|
|
18
|
+
|
|
19
|
+
Name of the cache to retrieve. Supports wildcards.
|
|
20
|
+
|
|
21
|
+
| Aliases | |
|
|
22
|
+
| :--- | :--- |
|
|
23
|
+
| Required? | false |
|
|
24
|
+
| Position? | 1 |
|
|
25
|
+
| Default Value | |
|
|
26
|
+
| Accept Pipeline Input? | false |
|
|
27
|
+
| Accept Wildcard Characters? | false |
|
|
28
|
+
|
|
29
|
+
## Outputs
|
|
30
|
+
|
|
31
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
32
|
+
|
|
33
|
+
* Sitecore.Caching.Cache
|
|
34
|
+
|
|
35
|
+
## Notes
|
|
36
|
+
|
|
37
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
38
|
+
|
|
39
|
+
## Examples
|
|
40
|
+
|
|
41
|
+
### EXAMPLE
|
|
42
|
+
|
|
43
|
+
```powershell
|
|
44
|
+
PS master:\> Get-Cache -Name master*
|
|
45
|
+
|
|
46
|
+
Name Enabled Count Size Max Size Default Scavengable
|
|
47
|
+
Priority
|
|
48
|
+
---- ------- ----- ---- -------- -------- -----------
|
|
49
|
+
master[blobIDs] True 0 0 512000 Normal False
|
|
50
|
+
master[blobIDs] True 0 0 512000 Normal False
|
|
51
|
+
master[blobIDs] True 0 0 512000 Normal False
|
|
52
|
+
master[itempaths] True 292 108228 10485760 Normal False
|
|
53
|
+
master[standardValues] True 57 38610 512000 Normal False
|
|
54
|
+
master[paths] True 108 13608 512000 Normal False
|
|
55
|
+
master[items] True 1010 5080300 10485760 Normal False
|
|
56
|
+
master[data] True 3427 7420654 20971520 Normal False
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Related Topics
|
|
60
|
+
|
|
61
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
62
|
+
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Get-Database
|
|
2
|
+
|
|
3
|
+
Retrieves a Sitecore Database.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
Get-Database \[\[-Name\] <String>\] \[-Item <Item>\]
|
|
8
|
+
|
|
9
|
+
## Detailed Description
|
|
10
|
+
|
|
11
|
+
The Get-Database command retrieves one or more Sitecore Database objects based on name or item passed to it.
|
|
12
|
+
|
|
13
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
### -Name <String>
|
|
18
|
+
|
|
19
|
+
Name of the database to be returned.
|
|
20
|
+
|
|
21
|
+
| Aliases | |
|
|
22
|
+
| :--- | :--- |
|
|
23
|
+
| Required? | false |
|
|
24
|
+
| Position? | 1 |
|
|
25
|
+
| Default Value | |
|
|
26
|
+
| Accept Pipeline Input? | true \(ByValue\) |
|
|
27
|
+
| Accept Wildcard Characters? | false |
|
|
28
|
+
|
|
29
|
+
### -Item <Item>
|
|
30
|
+
|
|
31
|
+
Database returned will be taken from the item passed to the command.
|
|
32
|
+
|
|
33
|
+
| Aliases | |
|
|
34
|
+
| :--- | :--- |
|
|
35
|
+
| Required? | false |
|
|
36
|
+
| Position? | named |
|
|
37
|
+
| Default Value | |
|
|
38
|
+
| Accept Pipeline Input? | true \(ByValue\) |
|
|
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
|
+
* Sitecore.Data.Items.Item
|
|
46
|
+
|
|
47
|
+
System.String
|
|
48
|
+
|
|
49
|
+
## Outputs
|
|
50
|
+
|
|
51
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
52
|
+
|
|
53
|
+
* Sitecore.Data.Database
|
|
54
|
+
|
|
55
|
+
## Notes
|
|
56
|
+
|
|
57
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
58
|
+
|
|
59
|
+
## Examples
|
|
60
|
+
|
|
61
|
+
### EXAMPLE 1
|
|
62
|
+
|
|
63
|
+
```powershell
|
|
64
|
+
PS master:\> Get-Database
|
|
65
|
+
Name Languages Protected Read Only
|
|
66
|
+
---- --------- --------- ---------
|
|
67
|
+
core {da, pl-PL, ja-JP, en...} False False
|
|
68
|
+
master {en, de-DE, es-ES, pt-BR...} False False
|
|
69
|
+
web {es-ES, de-DE, pt-BR, pl-PL... False False
|
|
70
|
+
filesystem {en, en-US} False True
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### EXAMPLE 2
|
|
74
|
+
|
|
75
|
+
```powershell
|
|
76
|
+
PS master:\> Get-Database -Name "master"
|
|
77
|
+
|
|
78
|
+
Name Languages Protected Read Only
|
|
79
|
+
---- --------- --------- ---------
|
|
80
|
+
master {en, de-DE, es-ES, pt-BR...} False False
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### EXAMPLE 3
|
|
84
|
+
|
|
85
|
+
```powershell
|
|
86
|
+
PS master:\> Get-Item . | Get-Database
|
|
87
|
+
|
|
88
|
+
Name Languages Protected Read Only
|
|
89
|
+
---- --------- --------- ---------
|
|
90
|
+
master {en, de-DE, es-ES, pt-BR...} False False
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Related Topics
|
|
94
|
+
|
|
95
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
96
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Get-Domain
|
|
2
|
+
|
|
3
|
+
Gets all available domains or the specified domain.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
Get-Domain \[-Name <String>\]
|
|
8
|
+
|
|
9
|
+
## Detailed Description
|
|
10
|
+
|
|
11
|
+
The Get-Domain command returns all the domains or the specified domain.
|
|
12
|
+
|
|
13
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
### -Name <String>
|
|
18
|
+
|
|
19
|
+
The name of the domai
|
|
20
|
+
|
|
21
|
+
| Aliases | |
|
|
22
|
+
| :--- | :--- |
|
|
23
|
+
| Required? | false |
|
|
24
|
+
| Position? | named |
|
|
25
|
+
| Default Value | |
|
|
26
|
+
| Accept Pipeline Input? | false |
|
|
27
|
+
| Accept Wildcard Characters? | false |
|
|
28
|
+
|
|
29
|
+
## Inputs
|
|
30
|
+
|
|
31
|
+
The input type is the type of the objects that you can pipe to the cmdlet.
|
|
32
|
+
|
|
33
|
+
* System.String
|
|
34
|
+
|
|
35
|
+
Represents the name of a domain.
|
|
36
|
+
|
|
37
|
+
## Outputs
|
|
38
|
+
|
|
39
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
40
|
+
|
|
41
|
+
* Sitecore.Security.Domains.Domai
|
|
42
|
+
|
|
43
|
+
## Notes
|
|
44
|
+
|
|
45
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
46
|
+
|
|
47
|
+
## Examples
|
|
48
|
+
|
|
49
|
+
### EXAMPLE 1
|
|
50
|
+
|
|
51
|
+
```powershell
|
|
52
|
+
PS master:\> Get-Domain -Name sitecore
|
|
53
|
+
Name AccountPrefix EnsureAnonymousUser LocallyManaged
|
|
54
|
+
---- ------------- ------------------- --------------
|
|
55
|
+
sitecore sitecore\ False False
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### EXAMPLE 2
|
|
59
|
+
|
|
60
|
+
```powershell
|
|
61
|
+
PS master:\> Get-Domain
|
|
62
|
+
|
|
63
|
+
Name AccountPrefix EnsureAnonymousUser LocallyManaged
|
|
64
|
+
---- ------------- ------------------- --------------
|
|
65
|
+
sitecore sitecore\ False False
|
|
66
|
+
extranet extranet\ True False
|
|
67
|
+
default default\ True False
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Related Topics
|
|
71
|
+
|
|
72
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
73
|
+
* [Remove-Domain](remove-domain.md)
|
|
74
|
+
* [New-Domain](new-domain.md)
|
|
75
|
+
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
# Get-Item
|
|
2
|
+
|
|
3
|
+
Gets Sitecore items from the specified drive.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
Get-Item [-Path] <String[]> [-ID <ID>] [-Language <String[]>] [-Version <String>] [<CommonParameters>]
|
|
9
|
+
|
|
10
|
+
Get-Item [-Path] <String[]> [-Query <String>] [-Language <String[]>] [-Version <String>] [-AmbiguousPaths] [<CommonParameters>]
|
|
11
|
+
|
|
12
|
+
Get-Item [-Path] <String[]> [-Uri <String>] [-Language <String[]>] [-Version <String>] [<CommonParameters>]
|
|
13
|
+
|
|
14
|
+
Get-Item [-Path] <String[]> [-Database <String>] [-Language <String[]>] [-Version <String>] [<CommonParameters>]
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Detailed Description
|
|
18
|
+
|
|
19
|
+
The Get-Item command unlocks the item.
|
|
20
|
+
|
|
21
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
22
|
+
|
|
23
|
+
## Parameters
|
|
24
|
+
|
|
25
|
+
### -Path <String>
|
|
26
|
+
|
|
27
|
+
The path to the item. If the Database parameter is not provided, the path should include the database. For example, `"master:\content\home"`.
|
|
28
|
+
|
|
29
|
+
| Aliases | |
|
|
30
|
+
| :--- | :--- |
|
|
31
|
+
| Required? | true |
|
|
32
|
+
| Position? | named |
|
|
33
|
+
| Default Value | |
|
|
34
|
+
| Accept Pipeline Input? | false |
|
|
35
|
+
| Accept Wildcard Characters? | false |
|
|
36
|
+
|
|
37
|
+
### -ID <ID>
|
|
38
|
+
|
|
39
|
+
The unique identifier for the item.
|
|
40
|
+
|
|
41
|
+
| Aliases | |
|
|
42
|
+
| :--- | :--- |
|
|
43
|
+
| Required? | false |
|
|
44
|
+
| Position? | named |
|
|
45
|
+
| Default Value | |
|
|
46
|
+
| Accept Pipeline Input? | false |
|
|
47
|
+
| Accept Wildcard Characters? | false |
|
|
48
|
+
|
|
49
|
+
### -Query <String>
|
|
50
|
+
|
|
51
|
+
The Sitecore query or fast query to retrieve the item.
|
|
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
|
+
### -Item <Item>
|
|
62
|
+
|
|
63
|
+
The item to be processed.
|
|
64
|
+
|
|
65
|
+
| Aliases | |
|
|
66
|
+
| :--- | :--- |
|
|
67
|
+
| Required? | true |
|
|
68
|
+
| Position? | 1 |
|
|
69
|
+
| Default Value | |
|
|
70
|
+
| Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
|
|
71
|
+
| Accept Wildcard Characters? | false |
|
|
72
|
+
|
|
73
|
+
### -Path <String>
|
|
74
|
+
|
|
75
|
+
Path to the item to be processed - can work with Language parameter to specify the language other than current session language.
|
|
76
|
+
|
|
77
|
+
| Aliases | |
|
|
78
|
+
| :--- | :--- |
|
|
79
|
+
| Required? | true |
|
|
80
|
+
| Position? | 1 |
|
|
81
|
+
| Default Value | |
|
|
82
|
+
| Accept Pipeline Input? | false |
|
|
83
|
+
| Accept Wildcard Characters? | false |
|
|
84
|
+
|
|
85
|
+
### -Id <String>
|
|
86
|
+
|
|
87
|
+
Id of the item to be processed.
|
|
88
|
+
|
|
89
|
+
| Aliases | |
|
|
90
|
+
| :--- | :--- |
|
|
91
|
+
| Required? | true |
|
|
92
|
+
| Position? | named |
|
|
93
|
+
| Default Value | |
|
|
94
|
+
| Accept Pipeline Input? | false |
|
|
95
|
+
| Accept Wildcard Characters? | false |
|
|
96
|
+
|
|
97
|
+
### -Database <String>
|
|
98
|
+
|
|
99
|
+
Database containing the item to be fetched with Id parameter.
|
|
100
|
+
|
|
101
|
+
| Aliases | |
|
|
102
|
+
| :--- | :--- |
|
|
103
|
+
| Required? | false |
|
|
104
|
+
| Position? | named |
|
|
105
|
+
| Default Value | |
|
|
106
|
+
| Accept Pipeline Input? | false |
|
|
107
|
+
| Accept Wildcard Characters? | false |
|
|
108
|
+
|
|
109
|
+
### -Language <Language[]>
|
|
110
|
+
|
|
111
|
+
Language(s) to use for filtering items.
|
|
112
|
+
|
|
113
|
+
| Aliases | |
|
|
114
|
+
| :--- | :--- |
|
|
115
|
+
| Required? | false |
|
|
116
|
+
| Position? | named |
|
|
117
|
+
| Default Value | |
|
|
118
|
+
| Accept Pipeline Input? | false |
|
|
119
|
+
| Accept Wildcard Characters? | false |
|
|
120
|
+
|
|
121
|
+
### -Version <String>
|
|
122
|
+
|
|
123
|
+
Version number to use for filtering items.
|
|
124
|
+
|
|
125
|
+
| Aliases | |
|
|
126
|
+
| :--- | :--- |
|
|
127
|
+
| Required? | false |
|
|
128
|
+
| Position? | named |
|
|
129
|
+
| Default Value | |
|
|
130
|
+
| Accept Pipeline Input? | false |
|
|
131
|
+
| Accept Wildcard Characters? | false |
|
|
132
|
+
|
|
133
|
+
## Inputs
|
|
134
|
+
|
|
135
|
+
The input type is the type of the objects that you can pipe to the cmdlet. Should be the path to an item.
|
|
136
|
+
|
|
137
|
+
* System.String
|
|
138
|
+
|
|
139
|
+
## Outputs
|
|
140
|
+
|
|
141
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
142
|
+
|
|
143
|
+
* Sitecore.Data.Items.Item
|
|
144
|
+
|
|
145
|
+
## Notes
|
|
146
|
+
|
|
147
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
148
|
+
|
|
149
|
+
## Examples
|
|
150
|
+
|
|
151
|
+
### EXAMPLE 1
|
|
152
|
+
|
|
153
|
+
The following gets the item using the path.
|
|
154
|
+
|
|
155
|
+
```powershell
|
|
156
|
+
Get-Item -Path "master:\content\home"
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### EXAMPLE 2
|
|
160
|
+
|
|
161
|
+
The following gets all items in the master database, located under Content, which are based on the template **Sample Item** using a Sitecore query.
|
|
162
|
+
|
|
163
|
+
```powershell
|
|
164
|
+
Get-Item -Path "master:" -Query "/sitecore/content//*[@@templatename='Sample Item']"
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### EXAMPLE 3
|
|
168
|
+
|
|
169
|
+
The following gets the item in the master database with the specified `ID`.
|
|
170
|
+
|
|
171
|
+
```powershell
|
|
172
|
+
Get-Item -Path "master:" -ID "{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}"
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### EXAMPLE 4
|
|
176
|
+
|
|
177
|
+
The following gets the item in the master database using the Uri.
|
|
178
|
+
|
|
179
|
+
```powershell
|
|
180
|
+
Get-Item -Path "master:" -Uri "sitecore://master/{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}?lang=en&ver=1"
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## Related Topics
|
|
184
|
+
|
|
185
|
+
* Get-ChildItem
|
|
186
|
+
|