node-wp-cli

A nodejs wrapper for `WP-CLI`

Usage no npm install needed!

<script type="module">
  import nodeWpCli from 'https://cdn.skypack.dev/node-wp-cli';
</script>

README

node-wp-cli

npm version dependencies Status

A nodejs wrapper for WP-CLI.

You just need to install this NPM package and WP-CLI will install automatically to your computer without doing any additional step.

Installation

npm install node-wp-cli

Usage

var wpCli = require('node-wp-cli');

wpCli.call('core download', { path: 'myWPSite' }, function(err, resp) {
    if (err) throw err;

    console.log(resp.message);
})

Click here to see all the WP-CLI commands.

Credits

  • All the contributors of WP-CLI