| layout | default |
|---|---|
| parent | auth0 experimentation experiments |
| has_toc | false |
Create a new experiment.
To create interactively, use auth0 experimentation experiments create with no flags.
To create non-interactively, supply all required flags.
auth0 experimentation experiments create [flags]
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}]'
-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.
--debug Enable debug mode.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
- auth0 experimentation experiments create - Create a new experiment
- auth0 experimentation experiments delete - Delete an experiment
- auth0 experimentation experiments list - List your experiments
- auth0 experimentation experiments show - Show an experiment
- auth0 experimentation experiments status - Change an experiment's status
- auth0 experimentation experiments update - Update an experiment
- auth0 experimentation experiments validate - Validate an experiment