wordpress-rest-curl/README.md

22 lines
757 B
Markdown
Raw Permalink Normal View History

2020-10-06 20:14:33 +00:00
# wordpress-rest-curl
2020-10-06 20:28:37 +00:00
CLI tool for submitting posts to WordPress through its REST API using curl.
## Install
### WordPress
Install [Application Passwords](https://wordpress.org/plugins/application-passwords/) plugin and follow its installation steps (i.e. create a new passowrd for your user).
### Local shell
2020-10-06 21:17:14 +00:00
Make sure you have `curl` installed. If you want to enter text in markdown format, install `python-markdown2`.
2020-10-06 20:28:37 +00:00
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!