Class PullPolicyCommand
Serializes one or more policy from the connected Content Hub instance to the local file system.
Inheritance
object
System.CommandLine.Symbol
System.CommandLine.IdentifierSymbol
Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand
Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand<THandler>Sitecore.CH.Cli.Plugin.Serialization.CommandHandlers.PullPolicyCommandHandler
PullPolicyCommand
Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.SerializationCommands
Assembly: Sitecore.CH.Cli.Plugin.Serialization.dll
Syntax
Remarks
Optional parameters
--endpoint -eSpecifies an alternative endpoint name for the execution of this command.--name -nName of the policies to pull. Wildcards allowed.--id -iId of policy to pull.--remove-missing -rRemove local-only entities.--updates -uUpdate only entities modified in the last minutes (see --minutes).--minutes -mMinutes to go back to look for modified entities. Default is 30 minutes.--folder -fSpecifies the a working directory other than the current folder.
Global parameters
-? --help -hShow this help message and exit.-v --verbosityEnables verbose logging.
Examples
Serialize a policy by ID:
Serialize all policies, using the specified working directory: