node-wp-cli
node-wp-cli copied to clipboard
Old commands that have moved might not be covered
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 works which confused me at first... until I realised that this command is now known as wp config create
.
In node-wp-cli, wp.config.create()
therefore works as expected.
I know this probably isn't something that's easy to fix because the old command will no longer be in the command dump from wp-cli, but noting it just in case!
WP-CLI currently contains a list of hard-coded backward compatibility conversions, that you can find here: https://github.com/wp-cli/wp-cli/blob/v1.4.0/php/WP_CLI/Runner.php#L543-L694
There's no plan so far to include this in the command dump, so I guess it would need to be hard-coded in node-wp-cli as well to make this work.