CLI to upload posts to wordpress.com
-
I would like to write my blog posts using my Linux command line tools locally and then push/upload them to my wordpress.com blog (free blog). Do I have this option?
I have come across something called wp-cli and have installed it. But I see that it is for wordpress sites that are hosted elsewhere. Is there a way to ssh into my free wordpress.com blog and upload a post (preferably written in markdown) ?
Thank You
The blog I need help with is: (visible only to logged in users)
-
Have a look at the offline editing page. I don’t know for definite if this is something that can be done but there is a Linux client that should work. I know this is not what you asked for but hopefully this points you in the right direction!
If you do manage to find a solution then please post back as other WordPress.com users will more than likely find it helpful in future.
-
I did look at that and was trying to see if I can ssh into my wordpress account or something. Does ‘xmlrpc’ ring a bell? I see this file has something to do with user account. But I am not sure how to access it.
-
You could take a look at the collection of Lua scripts I’ve been building to enable manipulating posts in WordPress.com (or Jetpack) hosted blogs. They operate entirely through the REST API, and depend on OAuth2 as supported by WordPress.com or Jetpack.
I’m personally working in Windows, but haven’t been deliberately introducing incompatibilities with Linux. I’d be happy to have feedback from Linux users.
The tools are no where near complete, but it is currently possible to push a Markdown file from my PC to my blog and have it land as a new draft post with title, category, and tags all set with command-line options. They can also retrieve posts for editing given their post ID, and list posts, categories, tags, etc. currently on the blog.
Supporting media in some sensible way is the big missing feature. Ideally, I’d like it to collect and upload local media mentioned in a post and replace the mentions with the URL of where they land at the blog.
- The topic ‘CLI to upload posts to wordpress.com’ is closed to new replies.