|
2 years ago | |
---|---|---|
LICENSE | 2 years ago | |
README.md | 2 years ago | |
config.sh.template | 2 years ago | |
post.sh | 2 years ago |
CLI tool for submitting posts to WordPress through its REST API using curl.
Install Application Passwords plugin and follow its installation steps (i.e. create a new passowrd for your user).
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.