Export-Package
Last updated
Last updated
Exports a Sitecore installation package and project.
Export-Package [[-Path] <String>] [[-Project] <PackageProject>] [-Zip] [-NoClobber] [-IncludeProject]
The Export-Package command creates a Sitecore installation package as either a .zip containing all items and files or .xml with project definition.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
Path the project should be saved under.
Aliases | |
---|---|
Project object created ealier with the New-Package. or Loaded with Get-Package.
Specify this parameter to exposrt package with all its assets in a zip file. If this parameter is missing only Xml file with the package project definition will be saved.
Do not overwrite (replace the contents) of an existing file. By default, if a file exists in the specified path, Export-Package overwrites the file without warning.
Specify this parameter if exporting the zip file and when you want it to contain the project definitnion xml file in it.
The input type is the type of the objects that you can pipe to the cmdlet.
Sitecore.Install.PackageProject
Help Author: Adam Najmanowicz, Michael West
Following example creates a new package, adds content/home item to it and saves it in the Sitecore Package folder+ gives you an option to download the saved package.
Import-Package
Aliases | |
---|---|
Aliases | |
---|---|
Aliases | |
---|---|
Aliases | |
---|---|
Required?
false
Position?
1
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
Required?
false
Position?
2
Default Value
Accept Pipeline Input?
true (ByValue)
Accept Wildcard Characters?
false
Required?
false
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
Required?
false
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
Required?
false
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false