I'm currently working on a website which is based on Wordpress. It's not that usual Wordpress blog which is using posts but rather a non-profit association website. Once a week a single page need to be updated with new content (text + audio file).

I'd like to do that via bash scripts using WP-CLI. However, I found no way to update a specific Wordpress page with WP-CLI. Is it possible to update a single Wordpress page via WP-CLI?

If not, maybe that's the wrong approach and I should use the blog functionality of Wordpress. How is it possible to create a post which includes an audio file via WP-CLI?

1 Answer 1


You can update posts using wp update
But you probably want a to create custom package to do exactly what you want. Also see Commands Cookbook

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.