← Back to Skills Marketplace
akkualle

WordPress REST API CLI

by Akkualle · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
114
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install akkualle-wordpress-api
Description
OpenClaw skill that provides a WordPress REST API CLI for posts, pages, categories, tags, users, and custom requests using plain HTTP.
README (SKILL.md)

WordPress REST API Skill (Advanced)

Purpose

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.

Best fit

  • You want a stable CLI for automation and bot workflows.
  • You need JSON-in/JSON-out for pipelines.
  • You prefer simple HTTP with no extra dependencies.

Not a fit

  • You must handle OAuth flows or complex browser-based auth.
  • You need advanced media uploads (multipart streaming).

Requirements

  • Node.js 18+ (for native fetch).

One-time setup

  1. Enable the WordPress REST API (default in modern WordPress).
  2. Create an Application Password for a WordPress user.
  3. Confirm the user has the right role (e.g., Editor/Admin).

Install

cd wordpress
npm install

Run

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

Credentials

Supported options (first match wins):

  • Basic auth token: WP_BASIC_TOKEN (base64 of user:app_password)
  • User + app password: WP_USER + WP_APP_PASSWORD
  • JWT bearer token: WP_JWT_TOKEN

Required env

  • WP_BASE_URL (e.g., https://example.com)

Input conventions

  • JSON can be inline or loaded from file with @path.
  • Query params use --query key=value (repeatable) or --query key1=value1,key2=value2.

Command map (high level)

Posts:

  • posts:list, posts:get, posts:create, posts:update, posts:delete

Pages:

  • pages:list, pages:get, pages:create, pages:update, pages:delete

Taxonomy:

  • categories:list, categories:create
  • tags:list, tags:create

Users:

  • users:list, users:get

Advanced:

  • request (raw method + path)

Operational guidance

  • Prefer context=view for read-only list calls.
  • Use status=draft when staging content.
  • Implement retries for 429 and transient 5xx errors in orchestrators.

Expected output

  • JSON to stdout; non-zero exit code on errors.

Security notes

  • Never log or commit tokens or application passwords.
  • Use a dedicated low-privilege WordPress account where possible.
Usage Guidance
This skill's code implements a straightforward WordPress REST CLI and appears to do only WordPress API calls. Before installing: (1) confirm you supply WP_BASE_URL and only the minimum-privilege credentials (prefer a dedicated bot account and application password); (2) note the registry metadata omitted required env declarations — treat that as a bookkeeping issue and double-check env names expected by the script; (3) be careful when using the @file feature (do not pass paths to sensitive local files you don't intend to send); (4) review the included scripts/wp-cli.js locally if you want to verify there's no outbound traffic to unexpected hosts; and (5) run npm install in an isolated environment if you have concerns about dependencies.
Capability Analysis
Type: OpenClaw Skill Name: akkualle-wordpress-api Version: 1.0.0 The skill is a standard WordPress REST API CLI implemented in Node.js using native fetch. It provides functionality for managing posts, pages, and taxonomies via environment-variable-based authentication (Basic or JWT). The code in scripts/wp-cli.js is transparent, lacks external dependencies, and contains no evidence of malicious intent, data exfiltration, or prompt-injection attacks.
Capability Assessment
Purpose & Capability
The name/description, SKILL.md, and scripts/wp-cli.js are coherent: a WordPress REST API CLI legitimately needs WP_BASE_URL and optional auth tokens. However the registry metadata declared 'required env vars: none' while SKILL.md and the code require WP_BASE_URL and accept WP_BASIC_TOKEN / WP_USER + WP_APP_PASSWORD / WP_JWT_TOKEN. That omission in metadata is an inconsistency to be aware of.
Instruction Scope
Runtime instructions and the script operate only against the configured WP_BASE_URL REST endpoints and use only standard JSON bodies. The script will read local files referenced with the @path convention (fs.readFileSync) and environment variables for auth; there are no references to unrelated system files, hidden endpoints, or unexplained network destinations.
Install Mechanism
There is no remote download/install spec in the registry; the SKILL.md expects a normal npm install (package.json included). No arbitrary URL downloads or extraction steps are present in the provided files.
Credentials
The environment variables used by the code (WP_BASE_URL, WP_BASIC_TOKEN, WP_USER, WP_APP_PASSWORD, WP_JWT_TOKEN) are appropriate for a WordPress CLI. The concern is purely that the registry metadata did not declare these required env vars — the code will fail or exit if WP_BASE_URL is missing. No unrelated credentials or services are requested.
Persistence & Privilege
Skill does not request always:true, does not modify other skills or system settings, and has normal autonomous-invocation defaults. It does not persist credentials itself or claim system-wide privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install akkualle-wordpress-api
  3. After installation, invoke the skill by name or use /akkualle-wordpress-api
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
WordPress REST API automation - posts, pages, categories, tags, users
Metadata
Slug akkualle-wordpress-api
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is WordPress REST API CLI?

OpenClaw skill that provides a WordPress REST API CLI for posts, pages, categories, tags, users, and custom requests using plain HTTP. It is an AI Agent Skill for Claude Code / OpenClaw, with 114 downloads so far.

How do I install WordPress REST API CLI?

Run "/install akkualle-wordpress-api" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is WordPress REST API CLI free?

Yes, WordPress REST API CLI is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does WordPress REST API CLI support?

WordPress REST API CLI is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created WordPress REST API CLI?

It is built and maintained by Akkualle (@akkualle); the current version is v1.0.0.

💬 Comments