node-wp-cli
node-wp-cli copied to clipboard
Node JS Wrapper for the Wordpress CLI
I don't think the defaulting of format to json is necessary at all? Although the absence of tests makes it difficult to gauge!
When running the `search_replace` command, passing through two parameters - the old string to be replaced by the new string - I get this error: ``` .....\node_modules\wp-cli\lib\WP.js:90 throw "Error option...
Currently running something like this: ``` js wp.option.update('blogdescription', "A new tagline", function(err, data) { console.log("Tagline/description set."); }); ``` can result in the string `A\ new\ tagline` being set in the...
I used to use `wp.core.config()` in node-wp-cli, and noticed that after upgrading wp-cli, this was no longer a available as a function. On the command line, `wp core config` still...
It looks like there's a mistake in the format logic, resulting in the format always being set to json. This code appears in utils.js, perhaps it should be if(!flags.format)? ```...
Hi. Not sure if this question goes here. How can I run commands as the actual user who runs Worpdress, and not as the one who is running Node JS....
``` javascript WP.core.install({"url":"http://localhost/mysite", "title":"site name", "admin_user":admin_user, "admin_password":admin_password, "admin_email":admin_email}, function(err, result) { }); ``` After install the title will show as: site\ name
the node command ```php wp("plugin delete hello"); ``` has no effect. The terminal `wp plugin remove hello` yes. How to fix?
See this code: ```javascript WP.core.download(function(err, result) { // [cut] WP.core.config(function(err, result) { if(err) { output(err.red); return false; } output(result.grey); }); }); ``` By executing it this error appear: ``` node_modules/wp-cli/lib/WP.js:90...