WP Rig provides a set of custom WP-CLI commands to streamline development tasks. All commands are available under the wp rig namespace.
Environment Setup
wp rig dev_setup: Automatically configures a new WordPress environment by installing curated plugins (like FakerPress and Theme Check) and setting up basic pages (Home and Blog).
wp rig test-setup: Prepares the environment for End-to-End testing by importing Theme Unit Test data and configuring optimal settings for tests.
wp rig import-test-data: Manually trigger the import of the official WordPress Theme Unit Test data.
Menu Management
wp rig fake_menu_items: Generates a hierarchical dummy menu for testing navigation styles.
wp rig menu list: Lists all available navigation menus in the environment.
wp rig menu export: Exports a specific menu to a JSON file.
Options:wp rig menu export "Main Menu" --file=main-menu.json --pretty
wp rig menu import: Imports a menu from a JSON file created by the export command.
Options:wp rig menu import main-menu.json --overwrite
Typography
wp rig fonts_download: Downloads Google Fonts defined in your theme and saves them locally in assets/fonts/ for GDPR compliance and performance.
Options:--dir=assets/fonts
Best Practices for Agents
Use wp rig dev_setup on a new WordPress site to quickly install essential development plugins.
Use wp rig test-setup before running npm run test:e2e to ensure the environment matches the test data expectations.
Export your test menus using wp rig menu export when sharing a theme configuration to ensure the exact menu structure is preserved.
Run wp rig fonts_download periodically to ensure all theme fonts are properly cached and available offline.
1---2name: wp-cli3description: WP Rig WP-CLI commands4---5# WP Rig WP-CLI commands67WP Rig provides a set of custom WP-CLI commands to streamline development tasks. All commands are available under the `wp rig` namespace.89## Environment Setup1011* `wp rig dev_setup`: Automatically configures a new WordPress environment by installing curated plugins (like FakerPress and Theme Check) and setting up basic pages (Home and Blog).12* `wp rig test-setup`: Prepares the environment for End-to-End testing by importing Theme Unit Test data and configuring optimal settings for tests.13* `wp rig import-test-data`: Manually trigger the import of the official WordPress Theme Unit Test data.1415## Menu Management1617* `wp rig fake_menu_items`: Generates a hierarchical dummy menu for testing navigation styles.18 * **Options:** `--items=8`, `--depth=3`, `--prefix="Nav Item"`, `--assign-location=primary`19* `wp rig menu list`: Lists all available navigation menus in the environment.20* `wp rig menu export`: Exports a specific menu to a JSON file.21 * **Options:** `wp rig menu export "Main Menu" --file=main-menu.json --pretty`22* `wp rig menu import`: Imports a menu from a JSON file created by the export command.23 * **Options:** `wp rig menu import main-menu.json --overwrite`2425## Typography2627* `wp rig fonts_download`: Downloads Google Fonts defined in your theme and saves them locally in `assets/fonts/` for GDPR compliance and performance.28 * **Options:** `--dir=assets/fonts`2930## Best Practices for Agents31321. **Use `wp rig dev_setup`** on a new WordPress site to quickly install essential development plugins.332. **Use `wp rig test-setup`** before running `npm run test:e2e` to ensure the environment matches the test data expectations.343. **Export your test menus** using `wp rig menu export` when sharing a theme configuration to ensure the exact menu structure is preserved.354. **Run `wp rig fonts_download`** periodically to ensure all theme fonts are properly cached and available offline.
Run npx skillmds@latest add comeonoliver/wp-cli in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
WP Rig WP-CLI commands It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
ComeOnOliver (@comeonoliver) published this skill. Their other Agent Skills are listed on their SkillMD profile.