mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
34 lines
772 B
Plaintext
34 lines
772 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# ntfy
|
|
|
|
> Send and receive HTTP POST notifications.
|
|
> More information: <https://github.com/binwiederhier/ntfy>.
|
|
|
|
- Send a message to the `security` topic:
|
|
|
|
`ntfy pub security "{{Front door has been opened.}}"`
|
|
|
|
- Send with a title, priority and tags:
|
|
|
|
`ntfy publish --title="{{Someone bought your item}}" --priority={{high}} --tags={{duck}} {{ebay}} "{{Someone just bought your item: Platypus Sculpture}}"`
|
|
|
|
- Send at 8:30am:
|
|
|
|
`ntfy pub --at=8:30am {{delayed_topic}} "{{Time for school, sleepyhead...}}"`
|
|
|
|
- Trigger a webhook:
|
|
|
|
`ntfy trigger {{my_webhook}}`
|
|
|
|
- Subscribe to a topic (`<Ctrl c>` to stop listening):
|
|
|
|
`ntfy sub {{home_automation}}`
|
|
|
|
- Display help:
|
|
|
|
`ntfy --help`
|