| 1 | apprise(1) -- Push Notifications that work with just about every platform! |
| 2 | ========================================================================== |
| 3 | |
| 4 | ## SYNOPSIS |
| 5 | |
| 6 | `apprise` [<options>...] <service-url>...<br> |
| 7 | `apprise` storage [<options>...] [<action>] [<url-or-uid>...]<br> |
| 8 | |
| 9 | ## DESCRIPTION |
| 10 | |
| 11 | **Apprise** allows you to send a notification to _almost all_ of the most |
| 12 | popular notification services available to us today such as: Discord, |
| 13 | Telegram, Pushbullet, Slack, Twitter, etc. |
| 14 | |
| 15 | * One notification library to rule them all. |
| 16 | * A common and intuitive notification syntax. |
| 17 | * Supports the handling of images (to the notification services that will |
| 18 | accept them). |
| 19 | * It's incredibly lightweight. |
| 20 | * Amazing response times because all messages sent asynchronously. |
| 21 | |
| 22 | ## OPTIONS |
| 23 | |
| 24 | The Apprise options are as follows: |
| 25 | |
| 26 | `-b`, `--body=`<VALUE>: |
| 27 | Specify the message body. If no body is specified then content is read from |
| 28 | <stdin>. |
| 29 | |
| 30 | `-t`, `--title=`<VALUE>: |
| 31 | Specify the message title. This field is completely optional. |
| 32 | |
| 33 | `-c`, `--config=`<CONFIG-URL>: |
| 34 | Specify one or more configuration locations. |
| 35 | |
| 36 | `-a`, `--attach=`<ATTACH-URL>: |
| 37 | Specify one or more file attachment locations. |
| 38 | |
| 39 | `-P`, `--plugin-path=`<PATH>: |
| 40 | Specify a path to scan for custom notification plugin support. |
| 41 | You can create your own notification by simply creating a Python file |
| 42 | that contains the `@notify("schema")` decorator. |
| 43 | |
| 44 | You can optionally choose to specify more than one **--plugin-path** (**-P**) |
| 45 | to increase the modules included. |
| 46 | |
| 47 | `-n`, `--notification-type=`<VALUE>: |
| 48 | Specify the message type (default=info). Possible values are "info", |
| 49 | "success", "failure", and "warning". |
| 50 | |
| 51 | `-i`, `--input-format=`<VALUE>: |
| 52 | Specify the input message format (default=text). Possible values are "text", |
| 53 | "html", and "markdown". |
| 54 | |
| 55 | `-T`, `--theme=`<VALUE>: |
| 56 | Specify the default theme. |
| 57 | |
| 58 | `-g`, `--tag=`<VALUE>: |
| 59 | Specify one or more tags to filter which services to notify: |
| 60 | |
| 61 | * `-g "tagA" -g "tagB"`: Match tagA **OR** tagB (Union). |
| 62 | * `-g "tagA,tagB"`: Match tagA **AND** tagB (Strict). |
| 63 | * `-g "all"`: Notify **ALL** services. |
| 64 | * `(Omitted)`: Notify **untagged** services only. |
| 65 | |
| 66 | Tag values may include an optional priority prefix and/or retry suffix: |
| 67 | |
| 68 | * `-g "2:tagA"`: Match **only** entries for tagA assigned priority 2. |
| 69 | * `-g "tagA:3"`: Match all tagA entries, retrying each up to 3 times. |
| 70 | * `-g "2:tagA:3"`: Priority-2 tagA entries only, with up to 3 retries. |
| 71 | |
| 72 | `-Da`, `--disable-async`: |
| 73 | Send notifications synchronously (one after the other) instead of |
| 74 | all at once. |
| 75 | |
| 76 | `-R`, `--recursion-depth`<INTEGER>: |
| 77 | The number of recursive import entries that can be loaded from within |
| 78 | Apprise configuration. By default this is set to 1. If this is set to |
| 79 | zero, then import statements found in any configuration is ignored. |
| 80 | |
| 81 | `-e`, `--interpret-escapes` |
| 82 | Enable interpretation of backslash escapes. For example, this would convert |
| 83 | sequences such as \n and \r to their respected ascii new-line and carriage |
| 84 | return characters prior to the delivery of the notification. |
| 85 | |
| 86 | `-j`, `--interpret-emojis` |
| 87 | Enable interpretation of emoji strings. For example, this would convert |
| 88 | sequences such as :smile: or :grin: to their respected unicode emoji |
| 89 | character. |
| 90 | |
| 91 | `-S`, `--storage-path=`<PATH>: |
| 92 | Specify the path to the persistent storage caching location |
| 93 | |
| 94 | `-SM`, `--storage-mode=`<MODE>: |
| 95 | Specify the persistent storage operational mode. Possible values are "auto", |
| 96 | "flush", and "memory". The default is "auto" if not specified. |
| 97 | |
| 98 | `-SPD`, `--storage-prune-days=`<INTEGER>: |
| 99 | Define the number of days the storage prune should run using. |
| 100 | Setting this to zero (0) will eliminate all accumulated content. By |
| 101 | default this value is 30 (days). |
| 102 | |
| 103 | `-SUL`, `--storage-uid-length=`<INTEGER>: |
| 104 | Define the number of unique characters to store persistent cache in. |
| 105 | By default this value is 8 (characters). |
| 106 | |
| 107 | `-d`, `--dry-run`: |
| 108 | Perform a trial run but only prints the notification services to-be |
| 109 | triggered to **stdout**. Notifications are never sent using this mode. |
| 110 | |
| 111 | `-l`, `--details` |
| 112 | Prints details about the current services supported by Apprise. |
| 113 | |
| 114 | `-v`, `--verbose`: |
| 115 | The more of these you specify, the more verbose the output is. e.g: -vvvv |
| 116 | |
| 117 | `-D`, `--debug`: |
| 118 | A debug mode; useful for troubleshooting. |
| 119 | |
| 120 | `-V`, `--version`: |
| 121 | Display the apprise version and exit. |
| 122 | |
| 123 | `-h`, `--help`: |
| 124 | Show this message and exit. |
| 125 | |
| 126 | ## PERSISTENT STORAGE |
| 127 | |
| 128 | Persistent storage by default writes to the following location unless the environment variable `APPRISE_STORAGE_PATH` overrides it and/or `--storage-path` (`-SP`) is specified to override it: |
| 129 | |
| 130 | ~/.local/share/apprise/cache |
| 131 | |
| 132 | To utilize the [persistent storage][pstorage] element associated with Apprise, simply |
| 133 | specify the keyword **storage** |
| 134 | |
| 135 | $ apprise storage |
| 136 | |
| 137 | The **storage** action has the following sub actions: |
| 138 | |
| 139 | `list`: |
| 140 | List all of the detected persistent storage elements and their state |
| 141 | (**stale**, **active**, or **unused**). This is the default action if |
| 142 | nothing further is identified. Results may be filtered by passing one |
| 143 | or more 8-character UID prefix strings, or by passing full Apprise |
| 144 | service URLs — each URL is resolved to its storage namespace |
| 145 | automatically, making it easy to look up a specific plugin's cache |
| 146 | entry without knowing the hash in advance. |
| 147 | |
| 148 | `prune`: |
| 149 | Removes all persistent storage that has not been referenced for more than 30 |
| 150 | days. You can optionally set the `--storage-prune-days` to alter this |
| 151 | default value. |
| 152 | |
| 153 | `clean`: |
| 154 | Removes all persistent storage regardless of age. |
| 155 | |
| 156 | ## EXIT STATUS |
| 157 | |
| 158 | **apprise** exits with a status of: |
| 159 | |
| 160 | * **0** if all of the notifications were sent successfully. |
| 161 | * **1** if one or more notifications could not be sent. |
| 162 | * **2** if there was an error specified on the command line such as not |
| 163 | providing an valid argument. |
| 164 | * **3** if there was one or more Apprise Service URLs successfully |
| 165 | loaded but none could be notified due to user filtering (via tags). |
| 166 | |
| 167 | ## SERVICE URLS |
| 168 | |
| 169 | There are too many service URL and combinations to list here. It's best to |
| 170 | visit the [Apprise GitHub page][serviceurls] and see what's available. |
| 171 | Also try out the [Apprise URL Builder][buildurls] to easily construct the URLS |
| 172 | this tool supports and works with. |
| 173 | |
| 174 | [serviceurls]: https://appriseit.com/services/ |
| 175 | [buildurls]: https://appriseit.com/tools/url-builder/ |
| 176 | |
| 177 | The **environment variable** of `APPRISE_URLS` (comma/space delimited) can be specified to |
| 178 | provide the default set of URLs you wish to notify if none are otherwise specified. |
| 179 | |
| 180 | ## EXAMPLES |
| 181 | |
| 182 | Send a notification to as many servers as you want to specify as you can |
| 183 | easily chain them together: |
| 184 | |
| 185 | $ apprise -vv -t "my title" -b "my notification body" \ |
| 186 | "mailto://myemail:[email protected]" \ |
| 187 | "pbul://o.gn5kj6nfhv736I7jC3cj3QLRiyhgl98b" |
| 188 | |
| 189 | If you don't specify a **--body** (**-b**) then stdin is used allowing you to |
| 190 | use the tool as part of your every day administration: |
| 191 | |
| 192 | $ cat /proc/cpuinfo | apprise -vv -t "cpu info" \ |
| 193 | "mailto://myemail:[email protected]" |
| 194 | |
| 195 | Load in a configuration file which identifies all of your notification service |
| 196 | URLs and notify them all: |
| 197 | |
| 198 | $ apprise -vv -t "my title" -b "my notification body" \ |
| 199 | --config=~/apprise.yml |
| 200 | |
| 201 | Load in a configuration file from a remote server that identifies all of your |
| 202 | notification service URLs and only notify the ones tagged as _devops_. |
| 203 | |
| 204 | $ apprise -vv -t "my title" -b "my notification body" \ |
| 205 | --config=https://localhost/my/apprise/config \ |
| 206 | -t devops |
| 207 | |
| 208 | **Tagging Logic Examples:** |
| 209 | |
| 210 | Notify any service tagged with "devops" OR "admin" (Union): |
| 211 | |
| 212 | $ apprise -vv -t "Union Test" \ |
| 213 | --config=~/apprise.yml \ |
| 214 | -g devops -g admin |
| 215 | |
| 216 | Notify only services tagged with BOTH "devops" AND "critical" (Intersection): |
| 217 | |
| 218 | $ apprise -vv -t "Intersection Test" \ |
| 219 | --config=~/apprise.yml \ |
| 220 | -g devops,critical |
| 221 | |
| 222 | Notify only priority-2 "alerts" services (exclusive priority filter): |
| 223 | |
| 224 | $ apprise -vv -t "High Alert" \ |
| 225 | --config=~/apprise.yml \ |
| 226 | -g "2:alerts" |
| 227 | |
| 228 | Notify all "alerts" services and retry each up to 3 times on failure: |
| 229 | |
| 230 | $ apprise -vv -t "Critical Event" \ |
| 231 | --config=~/apprise.yml \ |
| 232 | -g "alerts:3" |
| 233 | |
| 234 | Include an attachment: |
| 235 | |
| 236 | $ apprise -vv -t "School Assignment" -b "See attached" \ |
| 237 | --attach=Documents/FinalReport.docx |
| 238 | |
| 239 | List all of the notifications loaded: |
| 240 | |
| 241 | $ apprise --dry-run --tag=all |
| 242 | |
| 243 | List all of the details around the current persistent storage setup: |
| 244 | |
| 245 | $ apprise storage list |
| 246 | |
| 247 | Look up the storage namespace for a specific notification URL (shows the |
| 248 | UID even when no data has been written yet): |
| 249 | |
| 250 | $ apprise storage list "mailtos://user:[email protected]" |
| 251 | |
| 252 | Prune all persistent storage that has not been referenced for at least 10 days or more |
| 253 | |
| 254 | $ apprise storage prune --storage-prune-days=10 |
| 255 | |
| 256 | ## CUSTOM PLUGIN/NOTIFICATIONS |
| 257 | Apprise can additionally allow you to define your own custom **schema://** |
| 258 | entries that you can trigger on and call services you've defined. |
| 259 | |
| 260 | By default **apprise** looks in the following local locations for custom plugin |
| 261 | files and loads them: |
| 262 | |
| 263 | ~/.apprise/plugins |
| 264 | ~/.config/apprise/plugins |
| 265 | /var/lib/apprise/plugins |
| 266 | |
| 267 | The **environment variable** of `APPRISE_PLUGIN_PATH` can be specified to override |
| 268 | the list identified above with one of your own. use a semi-colon (`;`), line-feed (`\n`), |
| 269 | and/or carriage return (`\r`) to delimit multiple entries. |
| 270 | |
| 271 | Simply create your own python file with the following bare minimum content in |
| 272 | it: |
| 273 | |
| 274 | from apprise.decorators import notify |
| 275 | |
| 276 | # This example assumes you want your function to trigger on foobar:// |
| 277 | # references: |
| 278 | @notify(on="foobar", name="My Custom Notification") |
| 279 | def my_wrapper(body, title, notify_type, *args, **kwargs): |
| 280 | |
| 281 | print("Define your custom code here") |
| 282 | |
| 283 | # Returning True/False will relay your status back through Apprise |
| 284 | # Returning nothing (None by default) is always interpreted as True |
| 285 | return True |
| 286 | |
| 287 | ## CONFIGURATION |
| 288 | |
| 289 | An [Apprise configuration file][config] can be in the format of either **TEXT** |
| 290 | or **YAML** where TEXT is the easiest and most ideal solution for most users. |
| 291 | However YAML configuration files grants the user a bit more leverage and access |
| 292 | to some of the internal features of Apprise. Regardless of which format you choose, |
| 293 | both provide the users the ability to leverage **tagging** which adds a more rich and |
| 294 | powerful notification environment. |
| 295 | |
| 296 | Configuration files can be directly referenced via **apprise** when referencing |
| 297 | the `--config=` (`-c`) CLI directive. You can identify as many as you like on the |
| 298 | command line and all of them will be loaded. You can also point your configuration to |
| 299 | a cloud location (by referencing `http://` or `https://`. By default **apprise** looks |
| 300 | in the following local locations for configuration files and loads them: |
| 301 | |
| 302 | ~/.apprise.conf |
| 303 | ~/.apprise.yaml |
| 304 | ~/.config/apprise.conf |
| 305 | ~/.config/apprise.yaml |
| 306 | |
| 307 | ~/.apprise/apprise.conf |
| 308 | ~/.apprise/apprise.yaml |
| 309 | ~/.config/apprise/apprise.conf |
| 310 | ~/.config/apprise/apprise.yaml |
| 311 | |
| 312 | /etc/apprise.conf |
| 313 | /etc/apprise.yaml |
| 314 | /etc/apprise/apprise.conf |
| 315 | /etc/apprise/apprise.yaml |
| 316 | |
| 317 | The **configuration files** specified above can also be identified with a `.yml` |
| 318 | extension or even just entirely removing the `.conf` extension altogether. |
| 319 | |
| 320 | The **environment variable** of `APPRISE_CONFIG_PATH` can be specified to override |
| 321 | the list identified above with one of your own. use a semi-colon (`;`), line-feed (`\n`), |
| 322 | and/or carriage return (`\r`) to delimit multiple entries. |
| 323 | |
| 324 | If a default configuration file is referenced in any way by the **apprise** |
| 325 | tool, you no longer need to provide it a Service URL. Usage of the **apprise** |
| 326 | tool simplifies to: |
| 327 | |
| 328 | $ apprise -vv -t "my title" -b "my notification body" |
| 329 | |
| 330 | If you leveraged [tagging][tagging], you can define all of Apprise Service URLs in your |
| 331 | configuration that you want and only specifically notify a subset of them: |
| 332 | |
| 333 | $ apprise -vv --title "Will Be Late Getting Home" \ |
| 334 | --body "Please go ahead and make dinner without me." \ |
| 335 | --tag=family |
| 336 | |
| 337 | [config]: https://appriseit.com/getting-started/configuration/ |
| 338 | [tagging]: https://appriseit.com/cli/usage/#tagging-and-filtering |
| 339 | [pstorage]: https://appriseit.com/cli/persistent-storage/ |
| 340 | |
| 341 | ## ENVIRONMENT VARIABLES |
| 342 | `APPRISE_URLS`: |
| 343 | Specify the default URLs to notify IF none are otherwise specified on the command line |
| 344 | explicitly. If the `--config` (`-c`) is specified, then this will override any |
| 345 | reference to this variable. Use white space and/or a comma (`,`) to delimit multiple entries. |
| 346 | |
| 347 | `APPRISE_CONFIG_PATH`: |
| 348 | Explicitly specify the config search path to use (overriding the default). |
| 349 | Use a semi-colon (`;`), line-feed (`\n`), and/or carriage return (`\r`) to delimit multiple entries. |
| 350 | |
| 351 | `APPRISE_PLUGIN_PATH`: |
| 352 | Explicitly specify the custom plugin search path to use (overriding the default). |
| 353 | Use a semi-colon (`;`), line-feed (`\n`), and/or carriage return (`\r`) to delimit multiple entries. |
| 354 | |
| 355 | `APPRISE_STORAGE_PATH`: |
| 356 | Explicitly specify the persistent storage path to use (overriding the default). |
| 357 | |
| 358 | `HTTP_PROXY`, `HTTPS_PROXY`, `NO_PROXY`: |
| 359 | Standard proxy variables honored by the underlying `requests` library (not |
| 360 | Apprise-specific). Set `HTTP_PROXY`/`HTTPS_PROXY` to route outbound |
| 361 | notifications through a proxy, and `NO_PROXY` to exempt specific hosts. |
| 362 | SOCKS proxies (`socks5h://...`) additionally require the optional |
| 363 | `PySocks` package (`pip install pysocks`) to be installed. |
| 364 | |
| 365 | ## BUGS |
| 366 | |
| 367 | If you find any bugs, please make them known at: |
| 368 | <https://github.com/caronc/apprise/issues> |
| 369 | |
| 370 | ## DONATIONS |
| 371 | If you found Apprise useful at all, [please consider sponsoring][sponsorship] or [donating][donating]! |
| 372 | |
| 373 | [sponsorship]: https://github.com/sponsors/caronc |
| 374 | [donating]: https://www.paypal.com/donate/?hosted_button_id=CR6YF7KLQWQ5E |
| 375 | |
| 376 | ## COPYRIGHT |
| 377 | |
| 378 | Apprise is Copyright (C) 2026 Chris Caron <[email protected]> |