Repository navigation
Releases
Releases · WireCatLabs/wordpress-cli
0.4.0
Changed — may break callers
sync --rescanno longer lets a sync mark most of the copy deleted. It only lists everything again; a sync that
would mark most posts deleted is still held. The one way past it is the new owner-onlysync --allow-deletions <count>, with the number the held message names. An MCP client is not offered the flag. See
usage.- Built on cli-core 1.0.0 and cli-base 1.0.0. The generated API files read their types from
@wirecat/cli-base/codegen/runtime, andscripts/spec-model.tsusesModelOverride. Store version 73 comes with
cli-core 1.0: once a 1.0 tool opens the store, a 0.x tool refuses it, so upgrade every WireCat CLI together.
0.3.0
Added
- WireCat Desktop signs in to WordPress in its own window, also for a tool added from its describe.
--wcat-describenow lists the application password sign-in with its--siteand--loginflags, so Desktop asks
for the site, the user name and the password, and sends the password on stdin.
Fixed
posts publishandposts unpublishask one question, notposts.updatea second time.--helpnames WordPress's own sign-in and spec: thesessiongroup says application password, andapisays
its index at/wp-json.
0.2.0
Added
posts create --type pageand every write to a page. A page is now written through WordPress's pages routes:
create, update, publish, schedule, unpublish, trash and delete for good. A page has no tags, so--tagson a page
stops withcontent.write-unsupported.--dry-runnames the pages keys a page write checks.
Changed — may break callers
- cli-core 0.716.0 and cli-base 0.125.3. cli-base now marks a new application password in an answer as secret,
so theapigroup no longer offers any call whose answer can hold one:users-application-passwords-create,
-list,-get,-updateand-introspect-list. The hand-written exclusion of that route is gone, and
api users-application-passwords-delete-allis back, asking first like every delete. posts.delete: denyalso stopsapi pages-delete. A page's delete route checked onlypages.delete, so the
content key did not reach it, as it already did for the posts route and for creating and updating a page.
Fixed
- The installation guide says what an Author or Contributor gets. Their own posts and no pages, as in the
limits. It still said their posts sync stays partial, which 0.1.2 fixed. - An Editor or Author gets the authors. WordPress lists the users with their e-mail to an Administrator only, and
the sync got no authors at all for any other role. It now reads them the way WordPress answers every role: the
authors with published posts, by name, without e-mail. The sync names this as a gap. - An Author or Contributor sync reads only the changes, and sees a post deleted for good. Each sync read every post
again, and a post deleted for good stayed in the copy. Later syncs now read only what changed. Once a day the sync
reads each post that left the list once more: a post the site deleted for good is marked deleted, and one the role
may no longer read stays as it was. - A post's text keeps its
-list marker instead of turning- oneinto* one. posts publish --at-timewith a past time names--at-timein its error, not--at.
0.1.2
Fixed
- An Author or Contributor sign-in syncs their own posts again. WordPress refuses both roles the pages list, and
that refusal stopped the whole sync of posts: after the first run, changes on the site no longer reached the copy.
The sync now skips the pages for a role without the right to edit pages, says so in its gaps, and copies the posts.
0.1.1
Fixed
posts delete --dry-runnamesapi.posts-deletetoo. The delete sends through theapigroup's delete, whose
own key the run checks. Withposts.deleteset toallow, the preview saidallowwhile the run still asked.- The agent skill's header is valid YAML again.
skills/wordpress-cli/SKILL.mdhadsite: postsin its
unquoteddescription, which a YAML reader takes as a new key and refuses. Agents and wirecat.dev that read the
skill's header now can.
0.1.0
Added
- Started from
@wirecat/cli-template0.32.0. - Built from one file,
wirecat.config.ts, with no hooks, plus one command name and the permission key form in
scripts/generate.ts. wordpress <profile> session start --site <address> --login <user>signs in with an application password
from stdin, checked againstGET /wp/v2/users/me, and keeps it with its site. It goes to that site alone.wordpress <profile> synccopies your posts and pages into WireCat's local store, every status and the trash
too, with their tags, categories and authors. The text is kept as Markdown. Later syncs read only what changed.wordpress <profile> posts list|show|search|stats,tags list,users listandchannels listread the
copy, offline too.wordpress <profile> posts create|update|publish|unpublish|deletewrite to the site. A new post is a draft.
Publishing, now or with--at-time, has its own key. A delete goes to the trash, and--allow-deletedeletes for
good. Each asks by default. A post with blocks or embeds that Markdown cannot keep keeps its body unless
--replace-body, and a post changed on the site since the last sync is not overwritten. Pages are read, not
written: a write to a page stops withcontent.write-unsupported.wordpress <profile> apiruns everywp/v2route of WordPress 6.9.4, each with its own flags, help and
--json. Publishing and deleting for good need their own keys. Installing a plugin, changing a site setting,
making or changing a user or a comment, and changing templates, widgets, menus or navigation ask by default.
api posts-createandapi pages-createcheckposts.createtoo, and their updates checkposts.update.
batch/v1and making an application password are never offered.