lift notify
Add, list, test, and remove notification channels for alerts and system events.
lift notify
Manage notification channels for alerts and system events. Channels are managed through the OneLift platform API.
Requires environment variables: LIFT_API_URL and LIFT_API_TOKEN.
Subcommands
lift notify add <type>
Add a notification channel of the given type.
| Type | Required Flags |
|---|---|
slack | --webhook <url> |
discord | --webhook <url> |
telegram | --bot-token <token> --chat-id <id> |
email | --to <address> |
webhook | --url <url> |
| Flag | Description | Default |
|---|---|---|
--webhook <url> | Webhook URL (Slack, Discord) | - |
--bot-token <token> | Bot token (Telegram) | - |
--chat-id <id> | Chat ID (Telegram) | - |
--to <address> | Recipient email address | - |
--url <url> | Webhook URL (generic webhook type) | - |
--name <name> | Channel name | auto-generated |
# Add Slack channel
lift notify add slack --webhook https://hooks.slack.com/services/T.../B.../xxx
# Add Discord channel
lift notify add discord --webhook https://discord.com/api/webhooks/...
# Add Telegram channel
lift notify add telegram --bot-token 123:ABC --chat-id -1001234
# Add email channel
lift notify add email --to [email protected]
# Add generic webhook with custom name
lift notify add webhook --url https://example.com/hook --name my-webhook
lift notify list
List all configured notification channels.
lift notify list
lift notify list --output jsonl
lift notify test <name>
Send a test notification to verify the channel is working.
lift notify test my-slack
lift notify test my-telegram
lift notify remove <name>
Remove a notification channel by name.
lift notify remove my-slack
Related
- lift alerts - View alerts and alert rules