OpenClaw skill that provides a WordPress REST API CLI for posts, pages, categories, tags, users, and custom requests using plain HTTP.
Provide a production-ready CLI for WordPress REST API automation. This skill focuses on content workflows (posts/pages), taxonomy (categories/tags), user reads, and safe custom requests without external HTTP libraries.
fetch).cd wordpress
npm install
node scripts/wp-cli.js help
node scripts/wp-cli.js posts:list --query per_page=5
node scripts/wp-cli.js posts:create '@post.json'
You can also use npm:
npm run wp -- posts:list --query per_page=5
Supported options (first match wins):
WP_BASIC_TOKEN (base64 of user:app_password)WP_USER + WP_APP_PASSWORDWP_JWT_TOKENWP_BASE_URL (e.g., https://example.com)@path.--query key=value (repeatable) or --query key1=value1,key2=value2.Posts:
posts:list, posts:get, posts:create, posts:update, posts:deletePages:
pages:list, pages:get, pages:create, pages:update, pages:deleteTaxonomy:
categories:list, categories:createtags:list, tags:createUsers:
users:list, users:getAdvanced:
request (raw method + path)context=view for read-only list calls.status=draft when staging content.429 and transient 5xx errors in orchestrators.