1. Sitecore.CH.Cli.Plugin.Serialization.Commands

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

Command

Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand

Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommandSitecore.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

public sealed class PullOptionListCommand : BaseCommand<PullOptionListCommandHandler>

Remarks

Optional parameters

  • --endpoint -e Specifies an alternative endpoint name for the execution of this command.
  • --name -n Name of the option list to pull. Wildcards allowed.
  • --remove-missing -r Remove local-only option lists.
  • --updates -uUpdate only option lists modified in the last minutes (see --minutes).
  • --minutes -m Minutes to go back to look for modified option lists. Default is 30 minutes.
  • --folder -f Specifies the a working directory other than the current folder.

Global parameters

  • -? --help -h Show this help message and exit.
  • -v --verbosity Enables verbose logging.

Examples

Serialize an option list that matches the specified name:

ch-cli serialization pull option-list -name "<option list name>"

Serialize all option lists, using the specified working directory:

ch-cli serialization pull option-list --folder "<local path>"

Serialize all option lists that match the specific name, using the specified working directory:

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:

ch-cli serialization pull option-list -name "<option list name>" --remove-missing

Serialize all option lists that were updated recently (see --minutes):

ch-cli serialization pull option-list --updates --minutes "<15>"
If you have suggestions for improving this article, let us know!