Class PullOptionListCommand
Serializes one or more option lists 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.PullOptionListCommandHandler
PullOptionListCommand
Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.SerializationCommands
Assembly: Sitecore.CH.Cli.Plugin.Serialization.dll
Syntax
RequestResponse
public sealed class PullOptionListCommand : BaseCommand<PullOptionListCommandHandler>Remarks
Optional parameters
--endpoint -eSpecifies an alternative endpoint name for the execution of this command.--name -nName of the option list to pull. Wildcards allowed.--remove-missing -rRemove local-only option lists.--updates -uUpdate only option lists modified in the last minutes (see --minutes).--minutes -mMinutes to go back to look for modified option lists. 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 an option list that matches the specified name:
RequestResponse
ch-cli serialization pull option-list -name "<option list name>"Serialize all option lists, using the specified working directory:
RequestResponse
ch-cli serialization pull option-list --folder "<local path>"Serialize all option lists that match the specific name, using the specified working directory:
RequestResponse
ch-cli serialization pull option-list --name "<name-starts*j>" --folder "<local path>"Serialize all option lists that match the specified name and remove all local option lists that exist in the file system but not in the connected Content Hub instance:
RequestResponse
ch-cli serialization pull option-list -name "<option list name>" --remove-missingSerialize all option lists that were updated recently (see --minutes):
RequestResponse
ch-cli serialization pull option-list --updates --minutes "<15>"