logo
logo

Class FetchCommand

Fetch an order.

Inheritance
System.Object
Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand<Sitecore.CH.Cli.Plugin.Orders.CommandHandlers.FetchCommandHandler>
FetchCommand
Namespace: Sitecore.CH.Cli.Plugin.Orders.Commands
Assembly: Sitecore.CH.Cli.Plugin.Orders.dll
Syntax
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.

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

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

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

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

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

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

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

Can we improve this article ? Provide feedback