2019-03-14 02:35:44 +01:00
|
|
|
apprise(1) -- Push Notifications that work with just about every platform!
|
|
|
|
==========================================================================
|
|
|
|
|
|
|
|
## SYNOPSIS
|
|
|
|
|
|
|
|
`apprise` [<options>...] <service-url>...<br>
|
|
|
|
|
|
|
|
## DESCRIPTION
|
|
|
|
|
|
|
|
**Apprise** allows you to send a notification to _almost all_ of the most
|
|
|
|
popular notification services available to us today such as: Discord,
|
|
|
|
Telegram, Pushbullet, Slack, Twitter, etc.
|
|
|
|
|
|
|
|
* One notification library to rule them all.
|
|
|
|
* A common and intuitive notification syntax.
|
|
|
|
* Supports the handling of images (to the notification services that will
|
|
|
|
accept them).
|
|
|
|
|
|
|
|
## OPTIONS
|
|
|
|
|
|
|
|
The Apprise options are as follows:
|
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
`-b`, `--body=`<TEXT>:
|
|
|
|
Specify the message body. If no body is specified then content is read from
|
|
|
|
<stdin>.
|
2019-03-14 02:35:44 +01:00
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
`-t`, `--title=`<TEXT>:
|
|
|
|
Specify the message title. This field is complete optional.
|
2019-03-14 02:35:44 +01:00
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
`-c`, `--config=`<CONFIG-URL>:
|
|
|
|
Specify one or more configuration locations.
|
2019-03-14 02:35:44 +01:00
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
`-a`, `--attach=`<ATTACH-URL>:
|
|
|
|
Specify one or more file attachment locations.
|
2019-11-21 23:07:28 +01:00
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
`-n`, `--notification-type=`<TYPE>:
|
|
|
|
Specify the message type (default=info). Possible values are "info",
|
|
|
|
"success", "failure", and "warning".
|
2019-03-14 02:35:44 +01:00
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
`-i`, `--input-format=`<FORMAT>:
|
|
|
|
Specify the input message format (default=text). Possible values are "text",
|
|
|
|
"html", and "markdown".
|
2020-07-29 02:51:05 +02:00
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
`-T`, `--theme=`THEME:
|
|
|
|
Specify the default theme.
|
2019-03-14 02:35:44 +01:00
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
`-g`, `--tag=`TAG:
|
|
|
|
Specify one or more tags to filter which services to notify. Use multiple
|
|
|
|
**--tag** (**-g**) entries to `OR` the tags together and comma separated
|
|
|
|
to `AND` them. If no tags are specified then all services are notified.
|
2019-03-14 02:35:44 +01:00
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
`-Da`, `--disable-async`:
|
|
|
|
Send notifications synchronously (one after the other) instead of
|
|
|
|
all at once.
|
2019-10-01 03:44:40 +02:00
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
`-R`, `--recursion-depth`:
|
|
|
|
he number of recursive import entries that can be loaded from within
|
|
|
|
Apprise configuration. By default this is set to 1. If this is set to
|
|
|
|
zero, then import statements found in any configuration is ignored.
|
2019-03-14 02:35:44 +01:00
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
`-e`, `--interpret-escapes`
|
|
|
|
Enable interpretation of backslash escapes. For example, this would convert
|
|
|
|
sequences such as \n and \r to their respected ascii new-line and carriage
|
2020-08-16 02:28:15 +02:00
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
`-d`, `--dry-run`:
|
|
|
|
Perform a trial run but only prints the notification services to-be
|
|
|
|
triggered to **stdout**. Notifications are never sent using this mode.
|
2020-08-25 23:54:31 +02:00
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
return characters prior to the delivery of the notification.
|
2020-08-16 02:28:15 +02:00
|
|
|
|
2021-11-25 21:20:22 +01:00
|
|
|
`-l`, `--details`
|
|
|
|
Prints details about the current services supported by Apprise.
|
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
`-v`, `--verbose`:
|
|
|
|
The more of these you specify, the more verbose the output is. e.g: -vvvv
|
2019-03-14 02:35:44 +01:00
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
`-D`, `--debug`:
|
|
|
|
A debug mode; useful for troubleshooting.
|
2019-03-14 02:35:44 +01:00
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
`-V`, `--version`:
|
|
|
|
Display the apprise version and exit.
|
|
|
|
|
|
|
|
`-h`, `--help`:
|
|
|
|
Show this message and exit.
|
2020-01-25 19:46:32 +01:00
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
## EXIT STATUS
|
2020-01-25 19:46:32 +01:00
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
**apprise** exits with a status of:
|
2020-01-25 19:46:32 +01:00
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
* **0** if all of the notifications were sent successfully.
|
|
|
|
* **1** if one or more notifications could not be sent.
|
|
|
|
* **2** if there was an error specified on the command line such as not
|
|
|
|
providing an valid argument.
|
|
|
|
* **3** if there was one or more Apprise Service URLs successfully
|
|
|
|
loaded but none could be notified due to user filtering (via tags).
|
2020-01-25 19:46:32 +01:00
|
|
|
|
2019-03-14 02:35:44 +01:00
|
|
|
## SERVICE URLS
|
|
|
|
|
|
|
|
There are to many service URL and combinations to list here. It's best to
|
|
|
|
visit the [Apprise GitHub page][serviceurls] and see what's available.
|
|
|
|
|
2020-01-25 19:46:32 +01:00
|
|
|
[serviceurls]: https://github.com/caronc/apprise/wiki#notification-services
|
2019-03-14 02:35:44 +01:00
|
|
|
|
|
|
|
## EXAMPLES
|
|
|
|
|
|
|
|
Send a notification to as many servers as you want to specify as you can
|
|
|
|
easily chain them together:
|
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
$ apprise -vv -t "my title" -b "my notification body" \
|
|
|
|
"mailto://myemail:mypass@gmail.com" \
|
|
|
|
"pbul://o.gn5kj6nfhv736I7jC3cj3QLRiyhgl98b"
|
2019-03-14 02:35:44 +01:00
|
|
|
|
|
|
|
If you don't specify a **--body** (**-b**) then stdin is used allowing you to
|
|
|
|
use the tool as part of your every day administration:
|
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
$ cat /proc/cpuinfo | apprise -vv -t "cpu info" \
|
|
|
|
"mailto://myemail:mypass@gmail.com"
|
2019-03-14 02:35:44 +01:00
|
|
|
|
|
|
|
Load in a configuration file which identifies all of your notification service
|
|
|
|
URLs and notify them all:
|
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
$ apprise -vv -t "my title" -b "my notification body" \
|
2019-03-14 02:35:44 +01:00
|
|
|
--config=~/apprise.yml
|
|
|
|
|
|
|
|
Load in a configuration file from a remote server that identifies all of your
|
|
|
|
notification service URLs and only notify the ones tagged as _devops_.
|
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
$ apprise -vv -t "my title" -b "my notification body" \
|
2019-03-14 02:35:44 +01:00
|
|
|
--config=https://localhost/my/apprise/config \
|
|
|
|
-t devops
|
|
|
|
|
2019-11-21 23:07:28 +01:00
|
|
|
Include an attachment:
|
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
$ apprise -vv -t "School Assignment" -b "See attached" \
|
2019-11-21 23:07:28 +01:00
|
|
|
--attach=Documents/FinalReport.docx
|
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
## CONFIGURATION
|
|
|
|
|
|
|
|
A configuration file can be in the format of either **TEXT** or **YAML** where
|
|
|
|
[TEXT][textconfig] is the easiest and most ideal solution for most users. However
|
|
|
|
[YAML][yamlconfig] configuration files grants the user a bit more leverage and access
|
|
|
|
to some of the internal features of Apprise. Reguardless of which format you choose,
|
|
|
|
both provide the users the ability to leverage **tagging** which adds a more rich and
|
|
|
|
powerful notification environment.
|
|
|
|
|
|
|
|
Configuration files can be directly referenced via **apprise** when referencing
|
|
|
|
the `--config=` (`-c`) CLI directive. You can identify as many as you like on the
|
|
|
|
command line and all of them will be loaded. You can also point your configuration to
|
|
|
|
a cloud location (by referencing `http://` or `https://`. By default **apprise** looks
|
|
|
|
in the following local locations for configuration files and loads them:
|
|
|
|
|
|
|
|
$ ~/.apprise
|
|
|
|
$ ~/.apprise.yml
|
|
|
|
$ ~/.config/apprise
|
|
|
|
$ ~/.config/apprise.yml
|
|
|
|
|
|
|
|
If a default configuration file is referenced in any way by the **apprise**
|
|
|
|
tool, you no longer need to provide it a Service URL. Usage of the **apprise**
|
|
|
|
tool simplifies to:
|
|
|
|
|
|
|
|
$ apprise -vv -t "my title" -b "my notification body"
|
|
|
|
|
|
|
|
If you leveraged [tagging][tagging], you can define all of Apprise Service URLs in your
|
|
|
|
configuration that you want and only specifically notify a subset of them:
|
|
|
|
|
|
|
|
$ apprise -vv -t "Will Be Late" -b "Go ahead and make dinner without me" \
|
|
|
|
--tag=family
|
|
|
|
|
|
|
|
[yamlconfig]: https://github.com/caronc/apprise/wiki/config_yaml
|
|
|
|
[tagging]: https://github.com/caronc/apprise/wiki/CLI_Usage#label-leverage-tagging
|
|
|
|
|
|
|
|
|
2019-03-14 02:35:44 +01:00
|
|
|
## BUGS
|
|
|
|
|
2020-07-29 02:51:05 +02:00
|
|
|
If you find any bugs, please make them known at:
|
2019-03-14 02:35:44 +01:00
|
|
|
<https://github.com/caronc/apprise/issues>
|
|
|
|
|
|
|
|
## COPYRIGHT
|
|
|
|
|
2021-02-22 17:36:19 +01:00
|
|
|
Apprise is Copyright (C) 2021 Chris Caron <lead2gold@gmail.com>
|