Class FetchCommand

Current version: 3.4

Fetch an order.

Inheritance
object
Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand<THandler>Sitecore.CH.Cli.Plugin.Orders.CommandHandlers.FetchCommandHandler
FetchCommand
Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.OrdersCommands
Assembly: Sitecore.CH.Cli.Plugin.Orders.dll
Syntax
RequestResponse
public class FetchCommand : BaseCommand<FetchCommandHandler>
Remarks

Required parameters

  • --id Specifies the order id

Optional parameters

  • --wait -w Waits until the order is ready for download.
  • --out -o Waits until the order is ready for download and stores the file on disk in the specified location.
  • --endpoint -e Specifies an alternative endpoint name for the execution of this command.

Global parameters

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

Outputs the order's download url if the order is ready for download.

RequestResponse
ch-cli orders fetch --id "<order id>"

With wait option, outputs the order's download url.

RequestResponse
ch-cli orders fetch --id "<order id>" --wait

With out option, downloads the order to the specific location.

RequestResponse
ch-cli orders fetch --id "<order id>" --out

With wait and out option, downloads the order to the specific location.

RequestResponse
ch-cli orders fetch --id "<order id>" --wait --out

Do you have some feedback for us?

If you have suggestions for improving this article,