Node and Puppeteer driven tool to check your sites plugins for updates.
This tool will not update your plugins. It will only check for udpates.
- Node 8+
- Puppeteer
- An internet connection
- Currently supported SMTP connections (require OAuth2 configuration):
- Gmail
- Currently supported SMTP connections (require OAuth2 configuration):
- A user in your CMS with access to plugins panel
- WordPress
- Craft 3
- Run
npm ito install depencendies - Rename the following files
config.example.json->config.jsonemailConfig.example.json->emailConfig.json
- In
config.jsonadd values to the key/value pairs based on the Config Options table below. - In
emailConfig.jsonadd values to the key/value pairs based on the Email Config Options table below.
| Key | Description | Example |
|---|---|---|
name |
Name of the site | "Foo" |
type |
CMS Type | "WordPress" |
loginUrl |
Url to login page | "https://foo.com/wp-login.php" |
user |
CMS user name | "fooAdmin" |
password |
CMS user password | "hunter2" |
pluginsUrl |
Url to plugins page | "https://foo.com/wp-admin/plugins.php" |
loginButton |
CSS selector of submit button on login page | "#wp-submit" |
updatesElement |
CSS selector of update text row on plugins page | ".plugin-update .update-message" |
recipient |
Who to send the email to | "user@foo.com" |
| Key | Description | Example |
|---|---|---|
service |
SMTP email service | "gmail" |
user |
SMTP email user | "bar@foo.com" |
clientId |
Client ID from SMTP api | |
clientSecret |
Client secret from SMTP api | |
refreshToken |
Refresh token for OAuth2 | |
accessToken |
Access token for OAuth2 |
To run Plupdates simply run node plupdates.js from a terminal in the root directory of the Plupdates project.