CLI tool for submitting posts to WordPress through its REST API using curl.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dejvino 54723b3455 Initial commit. 3 years ago
LICENSE Initial commit 3 years ago
README.md Initial commit. 3 years ago
config.sh.template Initial commit. 3 years ago
post.sh Initial commit. 3 years ago

README.md

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.

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!