File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,24 @@ registration.pushManager.subscribe({
89
89
});
90
90
```
91
91
92
+ ## Command Line
93
+
94
+ You can install ` web-push ` globally and use it for send notifications and / or
95
+ generating VAPID keys.
96
+
97
+ Install like so:
98
+
99
+ npm install web-push -g
100
+
101
+ Then you can run the following commands:
102
+
103
+ Usage:
104
+
105
+ web-push send-notification --endpoint=<url> [--key=<browser key>] [--auth=<auth secret>] [--payload=<message>] [--ttl=<seconds>] [--vapid-subject=<vapid subject>] [--vapid-pubkey=<public key url base64>] [--vapid-pvtkey=<private key url base64>] [--gcm-api-key=<api key>]
106
+
107
+ web-push generate-vapid-keys [--json]
108
+
109
+
92
110
# API Reference
93
111
94
112
## sendNotification(pushSubscription, payload, options)
You can’t perform that action at this time.
0 commit comments