1
0
CLI tool for submitting posts to WordPress through its REST API using curl.
Ir para o ficheiro
2020-10-17 19:51:20 +02:00
config.sh.template Add post title extraction 2020-10-17 19:51:20 +02:00
LICENSE Initial commit 2020-10-06 20:14:33 +00:00
post.sh Add post title extraction 2020-10-17 19:51:20 +02:00
README.md Add markdown transformation support. 2020-10-06 23:17:14 +02:00

wordpress-rest-curl

CLI tool for submitting posts to WordPress through its REST API using curl.

Install

WordPress

Install Application Passwords plugin and follow its installation steps (i.e. create a new passowrd for your user).

Local shell

Make sure you have curl installed. If you want to enter text in markdown format, install python-markdown2.

Create a config file ~/.config/wordpress-rest-curl/config.sh from the config.sh.template file.

Copy the posting script to e.g. /usr/local/bin/wordpress-post so that you can run it from anywhere.

Usage

  • Run the script
  • Text editor opens. Type your post, save it.
  • Confirm the displayed post by pressing enter.
  • Done!