Skip to content

Latest commit

 

History

History
62 lines (45 loc) · 2.62 KB

File metadata and controls

62 lines (45 loc) · 2.62 KB
layout default
parent auth0 experimentation experiments
has_toc false

auth0 experimentation experiments create

Create a new experiment.

To create interactively, use auth0 experimentation experiments create with no flags.

To create non-interactively, supply all required flags.

Usage

auth0 experimentation experiments create [flags]

Examples

  auth0 experimentation experiments create
  auth0 experimentation experiments create --name "button-color" --feature-flag-id ff_abc --authentication-flow login --allocation-strategy percentage --assignment-config '{"subject":"device"}' --allocations '[{"variation_id":"vid_1","weight":50,"is_control":true},{"variation_id":"vid_2","weight":50,"is_control":false}]'

Flags

  -s, --allocation-strategy string   Allocation strategy: percentage or segment.
      --allocations string           JSON array of allocation items ({variation_id, weight, is_control} for percentage, where weight is an integer percentage from 1 to 100; {variation_id, segment_id, is_control} for segment).
      --assignment-config string     JSON object configuring how users are assigned to variations (e.g. '{"subject":"device"}').
  -a, --authentication-flow string   Authentication flow this experiment applies to (e.g. login, signup).
  -d, --description string           Description of the experiment.
  -f, --feature-flag-id string       ID of the feature flag to experiment on.
      --json                         Output in json format.
      --json-compact                 Output in compact json format.
  -n, --name string                  Name of the experiment.

Inherited Flags

      --debug           Enable debug mode.
      --no-color        Disable colors.
      --no-input        Disable interactivity.
      --tenant string   Specific tenant to use.

Related Commands