When it fires
After CreateVariablesService succeeds. Used by the dashboard import and by v1 API POST /projects/{slug}/environments/{environmentSlug}/variables/bulk.
envless push from @goenvless/cli does not come through here. It sends creates, updates and deletes in one apply call, which emits variable.applied.
A single bulk operation emits one variable.bulk_created event with an array of all created variables, not N individual variable.created events. If you need per-variable handling, iterate the array.
Payload
ts
{
type: 'variable.bulk_created',
data: {
environmentId: string
count: number
variables: Array<{
id: string
name: string
}>
}
}Example
json
{
"type": "variable.bulk_created",
"data": {
"environmentId": "0192a1b2-c3d4-7000-8000-000000000020",
"count": 3,
"variables": [
{ "id": "...040", "name": "DATABASE_URL" },
{ "id": "...041", "name": "REDIS_URL" },
{ "id": "...042", "name": "SESSION_SECRET" }
]
}
}