CLI tool for submitting posts to WordPress through its REST API using curl.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Dejvino 8053b966f5 Add markdown transformation support. il y a 3 ans
LICENSE Initial commit il y a 3 ans
README.md Add markdown transformation support. il y a 3 ans
config.sh.template Add markdown transformation support. il y a 3 ans
post.sh Add markdown transformation support. il y a 3 ans

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. 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!