1. xConnect DevEx CLI plugin

The CLI estimate contacts command

Version:

The xConnect DevEx CLI plugin includes an estimate command with a contacts subcommand. This command estimates the number of contacts a purge process would delete based on the provided CutoffDays and other options.

Usage

You can use the command as follows:

sitecore xconnect estimate contacts [options]

Options

You can use the following options with the command:

OptionRequired?Description
-c, --configYesThe path to the sitecore.json configuration file (default: cwd). A DevEx CLI standard option.
-n, --environment-nameYesThe Sitecore environment to use. Default: default. A DevEx CLI standard option.
-d, --cutoffdaysYesThe number of days the contact has not interacted with the brand. For example, -d 190.
Note

This option is the only requirement with no default value.



There is a list of restrictions for the cutoffdays option:

--sp, --start-percentileNoThe range-bound start percentile for the data extraction. For example, --sp 0.

There is a list of restrictions for the start-percentile option:

  • You must specify both the start and end percentile or none of them.
  • The range-bound for both is between 0 and 1.
  • The start-percentile must be lower than the end-percentile.
--ep, --end-percentileNoThe range-bound end percentile for data extraction. For example, --ep 1.

There is a list of restrictions for the end-percentile option:

  • You must specify both the start and end percentile or none of them.
  • The range-bound for both is between 0 and 1.
  • The end-percentile must be higher than the start-percentile.
-v, --verboseNoReport additional diagnostic and performance data.
-t, --traceNoReport additional diagnostic and performance data.
-?, -h, --helpNoHelp for the command.

Examples

The following are examples of the estimate contacts command use:

sitecore xconnect estimate contacts -d 180

sitecore xconnect estimate contacts -d 200 --sp 0.3 --ep 0.5 -n test --trace --verbose
If you have suggestions for improving this article, let us know!