auth0 events create
Create a new event stream.
To create interactively, use auth0 events create
with no flags.
To create non-interactively, supply the event stream name, type, subscriptions and configuration through the flags.
Usage
auth0 events create [flags]
Examples
auth0 events create
auth0 events create --name my-event-stream --type eventbridge --subscriptions "user.created,user.updated" --configuration '{"aws_account_id":"325235643634","aws_region":"us-east-2"}'
auth0 events create --name my-event-stream --type webhook --subscriptions "user.created,user.deleted" --configuration '{"webhook_endpoint":"https://mywebhook.net","webhook_authorization":{"method":"bearer","token":"123456789"}}'
auth0 events create -n my-event-stream -t webhook -s "user.created,user.deleted" -c '{"webhook_endpoint":"https://mywebhook.net","webhook_authorization":{"method":"bearer","token":"123456789"}}'
Flags
-c, --configuration string Configuration of the Event Stream. Formatted as JSON.
Webhook Example: {"webhook_endpoint":"https://my-webhook.net","webhook_authorization":{"method":"bearer","token":"123456789"}}
Eventbridge Example: {"aws_account_id":"7832467231933","aws_region":"us-east-2"}
--json Output in json format.
-n, --name string Name of the Event Stream.
-s, --subscriptions strings Subscriptions of the Event Stream. Formatted as comma separated string. Eg. user.created,user.updated
-t, --type string Type of the Event Stream. Eg: webhook, eventbridge etc
Inherited Flags
--debug Enable debug mode.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Related Commands
- auth0 events create - Create a new event stream
- auth0 events delete - Delete an event stream
- auth0 events list - List your event streams
- auth0 events show - Show an event stream
- auth0 events update - Update an event