Class PushEntityCommand

Deserializes one or more entities from the local file system to the connected Content Hub instance.

Inheritance
object
Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand<THandler>Sitecore.CH.Cli.Plugin.Serialization.CommandHandlers.PushEntityCommandHandler
PushEntityCommand
Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.SerializationCommands
Assembly: Sitecore.CH.Cli.Plugin.Serialization.dll
Syntax
RequestResponse
public sealed class PushEntityCommand : BaseCommand<PushEntityCommandHandler>
Remarks

Optional parameters

  • --endpoint -e Specifies an alternative endpoint name for the execution of this command.
  • --name -n Name(s) of entity(ies) to push. Wildcard allowed.
  • --definition -d Name of entity definition to push entities for.
  • --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

Deserialize all entities:

RequestResponse
ch-cli serialization push entity

Deserialize all entities that match the specified entity definition, using the specified working directory:

RequestResponse
ch-cli serialization push entity --definition "<entity definition name>" --folder "<local path>"

Deserialize all entities that match the specified entity definition and name, using the specified working directory:

RequestResponse
ch-cli serialization entity --name "<name-starts*j>" --definition "<entity definition name>" --folder "<local path>"

Do you have some feedback for us?

If you have suggestions for improving this article,