LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ntfy

simple pub-sub push notification service

TLDR

Publish a message to a topic
$ ntfy publish [topic] "[message]"
copy
Publish with title and priority
$ ntfy publish --title "[title]" --priority [high] [topic] "[message]"
copy
Publish with emoji tags
$ ntfy publish --tags "[warning,skull]" [topic] "[message]"
copy
Subscribe to a topic
$ ntfy subscribe [topic]
copy
Subscribe and execute command on message
$ ntfy subscribe [topic] "[command]"
copy
Run the ntfy server
$ ntfy serve
copy

SYNOPSIS

ntfy command [options]

DESCRIPTION

ntfy is a simple HTTP-based pub-sub notification service. It allows sending push notifications to phones and desktops via topics. The same binary serves as both the client (publish/subscribe) and the server.Messages can be published from the CLI, via curl, or any HTTP client. Subscribers receive real-time push notifications on mobile apps, the web interface, or the command line.

PARAMETERS

publish TOPIC [MESSAGE]

Send notification to a topic. Aliases: send, trigger, pub.
subscribe TOPIC [COMMAND]
Subscribe to topic notifications. Optionally run command on message arrival.
serve
Run the ntfy server (self-hosted).
--priority LEVEL
Set priority: min, low, default, high, max (or 1-5).
--title TITLE
Set notification title.
--tags TAGS
Add emoji tags (comma-separated).
--attach URL
Attach a file via URL.
--server URL
Specify ntfy server URL (default: ntfy.sh).
--user USER
Username for authentication.
--since TIME
Receive messages since time or message ID (with subscribe).
--help
Display help information.

CONFIGURATION

~/.config/ntfy/client.yml

Client configuration including default-host for self-hosted servers.

INSTALL

sudo apt install ntfy
copy
sudo apk add ntfy
copy
brew install ntfy
copy
nix profile install nixpkgs#ntfy
copy

CAVEATS

Requires ntfy.sh or a self-hosted server. Topics are public by default unless access control is configured. Free tier on ntfy.sh has rate limits.

HISTORY

ntfy was created by Philipp C. Heckel as a simple HTTP-based pub-sub notification service.

SEE ALSO

curl(1), notify-send(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid