1. ImportPackageCommand

Class ImportPackageCommand

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

Imports a package into the selected Content Hub instance.

Inheritance
System.Object
System.CommandLine.Symbol
System.CommandLine.NamedSymbol
System.CommandLine.Command
Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand<Sitecore.CH.Cli.Plugin.System.CommandHandlers.ImportPackageCommandHandler>
ImportPackageCommand
Namespace: Sitecore.CH.Cli.Plugin.System.Commands
Assembly: Sitecore.CH.Cli.Plugin.System.dll
Syntax
public class ImportPackageCommand : BaseCommand<ImportPackageCommandHandler>, ICommand, IIdentifierSymbol, ISymbol, ISuggestionSource, IEnumerable<Symbol>, IEnumerable
Remarks

Optional parameters

  • --source -s Specifies the path to the import package. Can be either a local file path or a HTTP/HTTPS URL
  • --wait -w Determines whether to wait for the import to complete or not.
  • --job-id Specifies whether the job ID is returned or not.

Global parameters

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

Queue an import without waiting:

ch-cli system import --source "<local file path or HTTP/HTTPS URL>"

Queue an import without waiting and retrieve the job ID:

ch-cli system import --source "<local file path or HTTP/HTTPS URL>" --job-id

Perform an import with waiting:

ch-cli system import --source "<local file path or HTTP/HTTPS URL>" --wait
この記事を改善するための提案がある場合は、 お知らせください!