New answers tagged

0

(I'll post here @photocurio's answer, as it's hidden in the comments) wp post list --post_type=page # will show only post-type=page wp post list # will show only post-type=post It's counter-intuitive command is also mis-documented, (which I hope to change), because: pages are posts. There's no "wp page list" command. ...


0

I know this might be trivial, - but it was my solution. I simply hadn't installed WP-CLI on my machine. So I followed the install instructions here: wp-cli - and then it worked for me.


0

I have found that sudo definitely changes the path, so I have tried using --allow-root without sudo and the commands work


Top 50 recent answers are included