|
| 1 | +--- |
| 2 | +layout: default |
| 3 | +parent: auth0 event-streams |
| 4 | +has_toc: false |
| 5 | +--- |
| 6 | +# auth0 event-streams create |
| 7 | + |
| 8 | +Create a new event stream. |
| 9 | + |
| 10 | +To create interactively, use `auth0 event-streams create` with no flags. |
| 11 | + |
| 12 | +To create non-interactively, supply the event stream name, type, subscriptions and configuration through the flags. |
| 13 | + |
| 14 | +## Usage |
| 15 | +``` |
| 16 | +auth0 event-streams create [flags] |
| 17 | +``` |
| 18 | + |
| 19 | +## Examples |
| 20 | + |
| 21 | +``` |
| 22 | + auth0 event-streams create |
| 23 | + auth0 event-streams create --name my-event-stream --type eventbridge --subscriptions "user.created,user.updated" --configuration '{"aws_account_id":"325235643634","aws_region":"us-east-2"}' |
| 24 | + auth0 event-streams create --name my-event-stream --type webhook --subscriptions "user.created,user.deleted" --configuration '{"webhook_endpoint":"https://mywebhook.net","webhook_authorization":{"method":"bearer","token":"123456789"}}' |
| 25 | + auth0 event-streams create -n my-event-stream -t webhook -s "user.created,user.deleted" -c '{"webhook_endpoint":"https://mywebhook.net","webhook_authorization":{"method":"bearer","token":"123456789"}}' |
| 26 | +``` |
| 27 | + |
| 28 | + |
| 29 | +## Flags |
| 30 | + |
| 31 | +``` |
| 32 | + -c, --configuration string Configuration of the Event Stream. Formatted as JSON. |
| 33 | + Webhook Example: {"webhook_endpoint":"https://my-webhook.net","webhook_authorization":{"method":"bearer","token":"123456789"}} |
| 34 | + Eventbridge Example: {"aws_account_id":"7832467231933","aws_region":"us-east-2"} |
| 35 | + --json Output in json format. |
| 36 | + --json-compact Output in compact json format. |
| 37 | + -n, --name string Name of the Event Stream. |
| 38 | + -s, --subscriptions strings Subscriptions of the Event Stream. Formatted as comma separated string. Eg. user.created,user.updated |
| 39 | + -t, --type string Type of the Event Stream. Eg: webhook, eventbridge etc |
| 40 | +``` |
| 41 | + |
| 42 | + |
| 43 | +## Inherited Flags |
| 44 | + |
| 45 | +``` |
| 46 | + --debug Enable debug mode. |
| 47 | + --no-color Disable colors. |
| 48 | + --no-input Disable interactivity. |
| 49 | + --tenant string Specific tenant to use. |
| 50 | +``` |
| 51 | + |
| 52 | + |
| 53 | +## Related Commands |
| 54 | + |
| 55 | +- [auth0 event-streams create](auth0_event-streams_create.md) - Create a new event stream |
| 56 | +- [auth0 event-streams delete](auth0_event-streams_delete.md) - Delete an event stream |
| 57 | +- [auth0 event-streams deliveries](auth0_event-streams_deliveries.md) - Manage event stream deliveries |
| 58 | +- [auth0 event-streams list](auth0_event-streams_list.md) - List your event streams |
| 59 | +- [auth0 event-streams redeliver](auth0_event-streams_redeliver.md) - Retry one or more event deliveries for a given stream |
| 60 | +- [auth0 event-streams redeliver-many](auth0_event-streams_redeliver-many.md) - Bulk retry failed event deliveries using filters |
| 61 | +- [auth0 event-streams show](auth0_event-streams_show.md) - Show an event stream |
| 62 | +- [auth0 event-streams stats](auth0_event-streams_stats.md) - View delivery stats for an event stream |
| 63 | +- [auth0 event-streams trigger](auth0_event-streams_trigger.md) - Trigger a test event for an event stream |
| 64 | +- [auth0 event-streams update](auth0_event-streams_update.md) - Update an event stream |
| 65 | + |
| 66 | + |
0 commit comments