CLI tool for submitting posts to WordPress through its REST API using curl.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Dejvino 0a86cfaee6 Add post title extraction 3 年前
LICENSE Initial commit 3 年前
README.md Add markdown transformation support. 3 年前
config.sh.template Add post title extraction 3 年前
post.sh Add post title extraction 3 年前

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!