|
| 1 | +--- |
| 2 | +layout: default |
| 3 | +parent: auth0 experiments |
| 4 | +has_toc: false |
| 5 | +--- |
| 6 | +# auth0 experiments create |
| 7 | + |
| 8 | +Create a new experiment. |
| 9 | + |
| 10 | +To create interactively, use `auth0 experiments create` with no flags. |
| 11 | + |
| 12 | +To create non-interactively, supply all required flags. |
| 13 | + |
| 14 | +## Usage |
| 15 | +``` |
| 16 | +auth0 experiments create [flags] |
| 17 | +``` |
| 18 | + |
| 19 | +## Examples |
| 20 | + |
| 21 | +``` |
| 22 | + auth0 experiments create |
| 23 | + auth0 experiments create --name "button-color" --feature-flag-id ff_abc --authentication-flow login --allocation-strategy percentage --allocations '[{"variation_id":"vid_1","weight":0.5,"is_control":true},{"variation_id":"vid_2","weight":0.5,"is_control":false}]' |
| 24 | +``` |
| 25 | + |
| 26 | + |
| 27 | +## Flags |
| 28 | + |
| 29 | +``` |
| 30 | + -s, --allocation-strategy string Allocation strategy: percentage or segment. |
| 31 | + -A, --allocations string Allocations as JSON array. Example: '[{"variation_id":"vid","weight":1.0,"is_control":true}]' |
| 32 | + -a, --authentication-flow string Authentication flow this experiment applies to (e.g. login, signup). |
| 33 | + -d, --description string Description of the experiment. |
| 34 | + -f, --feature-flag-id string ID of the feature flag to experiment on. |
| 35 | + --json Output in json format. |
| 36 | + --json-compact Output in compact json format. |
| 37 | + -n, --name string Name of the experiment. |
| 38 | +``` |
| 39 | + |
| 40 | + |
| 41 | +## Inherited Flags |
| 42 | + |
| 43 | +``` |
| 44 | + --debug Enable debug mode. |
| 45 | + --no-color Disable colors. |
| 46 | + --no-input Disable interactivity. |
| 47 | + --tenant string Specific tenant to use. |
| 48 | +``` |
| 49 | + |
| 50 | + |
| 51 | +## Related Commands |
| 52 | + |
| 53 | +- [auth0 experiments archive](auth0_experiments_archive.md) - Archive an experiment |
| 54 | +- [auth0 experiments complete](auth0_experiments_complete.md) - Complete an experiment |
| 55 | +- [auth0 experiments create](auth0_experiments_create.md) - Create a new experiment |
| 56 | +- [auth0 experiments delete](auth0_experiments_delete.md) - Delete an experiment |
| 57 | +- [auth0 experiments list](auth0_experiments_list.md) - List your experiments |
| 58 | +- [auth0 experiments pause](auth0_experiments_pause.md) - Pause an experiment |
| 59 | +- [auth0 experiments show](auth0_experiments_show.md) - Show an experiment |
| 60 | +- [auth0 experiments start](auth0_experiments_start.md) - Start an experiment |
| 61 | +- [auth0 experiments update](auth0_experiments_update.md) - Update an experiment |
| 62 | +- [auth0 experiments validate](auth0_experiments_validate.md) - Validate an experiment |
| 63 | + |
| 64 | + |
0 commit comments