WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I operate several wordpress sites on Dreamhost. I have some automated scripts that I want to be able to automatically post to the wordpress blogs. I can do this via a command-line tool or via the XML-RPC. Unfortunately:

  1. I can't find a command line tool that will reliably post. (I have shell access on the computer on which the wordpress site is running.)
  2. I can't get the XML-RPC API to work. I get an error that I need to use the RPC via POST. I'm told that this is a result of dreamhost running an out-of-date PHP version, but I've tried to use the mods to wordpress and it hasn't been successful.

So is there an easy way (or even a hard way) to post to a wordpress blog?


share|improve this question
up vote 3 down vote accepted

Since you have shell access, you could use wp-cli:

wp eval-file your-posting-script.php
share|improve this answer
scribu, what would you put in your-posting-script.php? can you please give me simple example with "hello world" with category=1 I am looking for command line tool that will post with categories. thank you for your help. – user19668 Aug 24 '12 at 21:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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