WP-CLI
VX adds its own command families to WP-CLI. Run them from the WordPress root, and add --user=<admin> for commands that need an administrator.
wp vx-framework config
Inspect, export, import, override and reset configuration. The full reference is in WP-CLI config commands.
bash
wp vx-framework config list
wp vx-framework config status --strict
wp vx-framework config export fieldsets book_details --write
wp vx-framework config import model.zip --planwp vx-framework abilities
Run any VX ability from the shell: the same operations AI assistants use, with the same validation, activity log and undo.
| Command | Does |
|---|---|
wp vx-framework abilities list [--mode=read|validate|write] [--mcp] | Lists abilities. --mcp shows only those exposed to AI clients. |
wp vx-framework abilities run <ability> [--input=<json>] | Runs one ability with a JSON input. |
wp vx-framework abilities blueprint [--section=<sections>] [--managed-only] | Prints the site's data model. |
wp vx-framework abilities mcp | Shows whether MCP is on, its address, and the exposed tools. |
bash
# Find Books missing a publisher
wp vx-framework abilities run vx-framework/count-posts --user=admin \
--input='{"post_type":"book","field_filters":[{"field":"publisher","op":"empty"}]}'
# Check a change without saving it
wp vx-framework abilities run vx-framework/update-post-type --user=admin \
--input='{"key":"book","config":{"exclude_from_search":"enabled"},"dry_run":true}'
# Review recent changes, and undo one
wp vx-framework abilities run vx-framework/list-changes --user=admin
wp vx-framework abilities run vx-framework/undo-change --user=admin --input='{"id":128,"dry_run":true}'Changes made this way are logged with the origin cli.
wp vx-framework license
Activate and manage the site's license. See License.
bash
wp vx-framework license status
wp vx-framework license activate VX-ACDEF-GHJKL-MNPQR-TUVWX --environment=developmentTechnical details for LLMs
abilities blueprint --section: any ofpost_types,taxonomies,fieldsets,field_types,dynamic_data;--formatsupported onlist,blueprint,run,mcp.abilities runexecutes through the samewp_get_ability()->execute()path, including themanage_optionscheck (hence--user). The input shape for write abilities:vx-framework/describe-abilities.- Commands exit non-zero on failure.