Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

wpgo

Command-line interface for WordPress using REST API written in Go

Subscribe to updates I use wpgo


Statistics on wpgo

Number of watchers on Github 25
Number of open issues 1
Main language Go
Average time to merge a PR 5 days
Open pull requests 0+
Closed pull requests 1+
Last commit almost 4 years ago
Repo Created about 5 years ago
Repo Last Updated about 2 years ago
Size 4.26 MB
Organization / Authorautomattic
Contributors2
Page Updated
Do you use wpgo? Leave a review!
View wpgo activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating wpgo for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

wpgo.go

Command-line tool to interact with WordPress blogs. You can read, publish and administer to some degree.

Setup

Works with WordPress.com and self-hosted blogs running Jetpack. If running Jetpack it requires the JSON API to be enabled, which should be activated by default.

You need to configure with an authorization token and blog id for each of your blogs. To do so, you can authorize using this site, which looks totally sketchy but it is run by a good guy, trust me: https://rest-access.test.apokalyptik.com/

Once you obtain the token and blog id, create ~/.wpgo.conf with the following two parameters:

token = ABCDEFGH123456
blog_id = 123456

You can setup multiple blogs, by specifying multiple entries, labeling each with [name] before parameters. The name used in brackets, is what you'll type on the command-line.

[mkaz]
token = ABCDEF123456
blog_id = 123456

[tinker]
token = ZYXWVU987654
blog_id = 987654

Commands

Single Site

$ wpgo read

$ wpgo read [post-id]

$ wpgo post filename.md

$ wpgo stats

$ wpgo upload image.jpg

Multiple sites using blog name

$ wpgo mkaz read

$ wpgo mkaz read [post-id]

$ wpgo mkaz post filename.md

$ wpgo mkaz stats

$ wpgo mkaz upload image.jpg

Publishing New Article

See sample-post.md for format. It is similar in style to Jekyll or other static-site tools by specifying post details in the front matter. You can specify title, date, category, and tags.

Contributors

You? Pull requests welcome.

License

GNU General Public License, version 2

wpgo open issues Ask a question     (View All Issues)
  • about 5 years Fix authentication API keys
wpgo list of languages used
Other projects in Go