You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note this is for spoofing a URL, this is not for remote management. If you're interested in remote management, I suggest you push the feature request with the authors of https://wp-cli.org/.
options.user
Type: Object or String
Default: 'null'
Pass either a username:password or username|password combination as a String, or an object of the form {username:"name",password:"pass"}.
options.require
Type: Array
Default: []
Load PHP file(s) before running the command.
callback
Required
Type: Function
Callback that is passed a WP instance. This instance has config options bound to it if you want to manage more than one wordpress install at a time.
Where arguments is an optional argument or array of arguments and options is an optional object of flags and values.
Example
varWP=require('wp-cli');WP.discover(function(WP){WP.scaffold.plugin("my-plugin",{plugin_name:"Hello Node WP"},function(err,result){// creates a new pluginconsole.log(result);});});
Most commands work with the exception of commands that are interactive prompts or commands that utilize stdin streams. These commands will be supported in future releases using spawn objects.