New-ExplicitFileSource
Last updated
Last updated
Creates new File source that can be added to a Sitecore package.
New-ExplicitFileSource [-Name] <String> [-File <FileSystemInfo>] [-InstallMode <String>]
Creates new File source that can be added to a Sitecore package. Folder provided as Root will be added as well as all of its content provided it matches the filters.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
Name of the file source.
Aliases | |
---|---|
Path to the file to be included. this can be automatically discovered if a stream of files is piped to the command.
The output type is the type of the objects that the cmdlet emits.
Sitecore.Install.Files.ExplicitFileSource
Help Author: Adam Najmanowicz, Michael West
Following example creates a new package, adds content of the Console folder (except the source files) under the site folder saves it in the Sitecore Package folder + gives you an option to download the saved package.
Import-Package
Aliases | |
---|---|
Aliases | |
---|---|
Required?
true
Position?
1
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
Required?
false
Position?
named
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