Class PullEntityCommand
Serializes one or more entities from the connected Content Hub instance to the local file system.
Inheritance
Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.SerializationCommands
Assembly: Sitecore.CH.Cli.Plugin.Serialization.dll
Syntax
public sealed class PullEntityCommand : BaseCommand<PullEntityCommandHandler>Remarks
Optional parameters
--endpoint -eSpecifies an alternative endpoint name for the execution of this command.--name -nName(s) of entity(ies) to pull. Wildcard allowed.--definition -dName of entity definition to pull entities for.--id -iId of entity to pull.--remove-missing -rRemove local-only entities.--include-relations -irInclude related 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 an entity by ID:
ch-cli serialization pull entity --id "<entity id>"Serialize an entity by ID with its related entities:
ch-cli serialization pull entity --id "<entity id>" --include-relationsSerialize all entities, using the specified working directory:
ch-cli serialization pull entity --folder "<local path>"Serialize all entities that match the specified entity definition, using the specified working directory:
ch-cli serialization pull entity --definition "<entity definition name>" --folder "<local path>"Serialize all entities that match the specified name and entity definition, using the specified working directory:
ch-cli serialization pull entity --name "<name-starts*j>" --definition "<entity definition name>" --folder "<local path>"Serialize all entities that match the specified entity definition and remove all entities that exist in the file system but not in the connected Content Hub instance:
ch-cli serialization pull entity --definition "<entity definition name>" --remove-missingSerialize all entities that match the specified entity definitions and that were updated recently (see --minutes):
ch-cli serialization pull entity --definition "<entity definition name>" --updates --minutes "<15>"