.\" SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-only .TH NTFY "1" "December 2024" "" "User Commands" .SH NAME \fBntfy\fR \- Simple pub\-sub notification service .SH "SYNOPSIS" .nf \fIntfy\fR [OPTIONS] \fIntfy \fR [OPTIONS]\fR .SH DESCRIPTION ntfy \- pronounced "notify" \- is a simple HTTP-based pub-sub notification service. With ntfy, you can send notifications to your phone or desktop via scripts from any computer .sp .SH COMMANDS This program provides both the client and server commands for ntfy. Both can be run as services but are usually disabled. .sp For command-specific options, run \fIntfy \-\-help\fR .PP .SS CLIENT COMMANDS .nf \fIpublish\fR [OPTIONS] [message] .RS 4 Send message via a ntfy server to a topic aliases: \fIsend\fR \fItrigger\fR \fIpub\fR .RE .PP \fIsubscribe\fR [OPTIONS] <[SERVER/]topic> [EXECUTE_COMMAND] \fIsubscribe\fR [OPTIONS] --from-config .RS 4 Subscribe to a topic which could be on a different server. If an optional command argument is passed, it will be executed when a message arrives. The second form can subscribe to multiple topics from config file\&. aliases: \fIsub\fR .RE .SS "SERVER COMMANDS" These are server\-only commands, with the exception of \fIserve\fR. They will directly manage the user.db as defined in the server config file server.yml. They require a properly defined 'auth\-file'. .sp \fIaccess\fR [USERNAME [TOPIC [PERMISSION]]] .RS 4 Show the access control list, as well as change it, depending on how it is called. .nf PERMISSION can be one of the following: .RS 4 read\-write (alias: rw) read\-only (aliases: read, ro) write\-only (aliases: write, wo) deny (alias: none) .RE Please also refer to the related command \fIuser\fR. .RE .PP \fIserve\fR \fIserve\fR \fB\-\-listen\-http\fR :8080 .RS 4 Run the ntfy server in the foreground (default port 80) .RE .PP \fItier\fR [list|add|change|remove] [OPTIONS] .RS 4 Manage/show tiers The command allows you to add/remove/change tiers in the ntfy user database. Tiers are used to grant users higher limits, such as daily message limits, attachment size, or make it possible for users to reserve topics. .RE .PP \fItoken\fR [OPTIONS] .RS 4 List, add or delete user tokens which can be used publish, subscribe, or perform any other user\-specific tasks. Tokens have full access, and can perform any task a user can do. They are meant to be used to avoid spreading the password to various places. .sp .RE .PP \fIuser\fR [list|add|remove|change\-pass|change\-role] [OPTIONS] .RS 4 List/add/remove/change users in the ntfy user database, as well as change passwords or roles. Please also refer to the related command \fIaccess\fR. .SH "GLOBAL OPTIONS" .TP \fB\-\-help\fR, \fB\-h\fR Shows a list of commands or help for one command .sp Try 'ntfy COMMAND \fB\-\-help\fR' or https://ntfy.sh/docs/ for more information. .IP .TP \fB\-\-debug\fR, \fB\-d\fR enable debug logging (default: false) [$NTFY_DEBUG] .TP \fB\-\-trace\fR enable tracing (very verbose, be careful) (default: false) [$NTFY_TRACE] .TP \fB\-\-no\-log\-dates\fR, \fB\-\-no_log_dates\fR disable the date/time prefix (default: false) [$NTFY_NO_LOG_DATES] .TP \fB\-\-log\-level\fR value, \fB\-\-log_level\fR value set log level (default: "INFO") [$NTFY_LOG_LEVEL] .TP \fB\-\-log\-level\-overrides\fR value, \fB\-\-log_level_overrides\fR value set log level overrides [$NTFY_LOG_LEVEL_OVERRIDES] .TP \fB\-\-log\-format\fR value, \fB\-\-log_format\fR value set log format (default: "text") [$NTFY_LOG_FORMAT] .TP \fB\-\-log\-file\fR value, \fB\-\-log_file\fR value set log file, default is STDOUT [$NTFY_LOG_FILE] .SH "ISSUES" .nf To report a bug, open an issue on GitHub: https://github.com/binwiederhier/ntfy/issues If you want to chat, simply join the Discord server (https://discord.gg/cT7ECsZj9w) or the Matrix room (https://matrix.to/#/#ntfy:matrix.org). .SH "COPYRIGHT" Copyright \(co 2022 Philipp C. Heckel, licensed under Apache License 2.0 & GPLv2 .SH "AUTHOR" Man page written for debian by Ahmad Khalifa.