Skip to ContentGlobio Docs

GC Hooks

GC Hooks are event-triggered functions that fire automatically when specific platform events occur, such as a user signing up or a document being created. The globio hooks command group manages them.

Available trigger events

EventFires when
id.onSignupA new user registers
id.onSigninA user signs in
id.onSignoutA user signs out
id.onPasswordResetA password is reset
doc.onCreateA document is created
doc.onUpdateA document is updated
doc.onDeleteA document is deleted
mart.onPurchaseA purchase is made
mart.onPaymentA payment completes
sync.onRoomCreateA multiplayer room is created
sync.onRoomCloseA multiplayer room closes
sync.onPlayerJoinA player joins a room
sync.onPlayerLeaveA player leaves a room
vault.onUploadA file is uploaded
vault.onDeleteA file is deleted
signal.onDeliverA notification is delivered

List hooks

globio hooks globio hooks list globio hooks list --profile <name> globio hooks list --json

Create a hook

globio hooks create <slug> globio hooks create <slug> --json

Deploy a hook

globio hooks deploy <slug> globio hooks deploy <slug> --file <path> globio hooks deploy <slug> --name <display-name> globio hooks deploy <slug> --trigger <event> globio hooks deploy <slug> --profile <name> globio hooks deploy <slug> --json

Example:

globio hooks deploy on-signup \ --file ./hooks/on-signup.ts \ --trigger id.onSignup

View logs

globio hooks logs <slug> globio hooks logs <slug> --limit <n> globio hooks logs <slug> --profile <name> globio hooks logs <slug> --json

Watch live logs

globio hooks watch <slug> globio hooks watch <slug> --profile <name>

watch does not support --json.

Enable / disable

globio hooks enable <slug> globio hooks enable <slug> --profile <name> globio hooks enable <slug> --json globio hooks disable <slug> globio hooks disable <slug> --profile <name> globio hooks disable <slug> --json

Delete

globio hooks delete <slug> globio hooks delete <slug> --profile <name> globio hooks delete <slug> --json
Last updated on
© 2026 StaNLink Inc. Built with Globio.