wp-env-cli

Manage WordPress environments and execute wp-cli commands via wp-env.

5|Updated Feb 18, 2018
One-click install
npx skills add https://github.com/ebinnion/dotfiles --skill wp-env-cli
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: wp-env-cli
Source: https://github.com/ebinnion/dotfiles/tree/main/skills/wp-env-cli
Command: npx skills add https://github.com/ebinnion/dotfiles --skill wp-env-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

WordPress development workflows are streamlined by wrapping wp-env and wp-cli usage in a consistent, scriptable interface that reduces manual setup overhead and errors.

Core Features & Use Cases

  • Run wp-cli commands inside the wp-env environment with wp-env run cli wp <command>.
  • Manage environment lifecycle: start, stop, restart, update, and view logs.
  • Debugging and environment-tuning via wp-env start --xdebug, shell access, and plugin/theme testing inside containers.
  • Database operations and context-aware command execution within the container.

Quick Start

Start the environment with wp-env, then run a wp-cli command using wp-env run cli wp <command>.

Frequently Asked Questions about wp-env-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run wp-cli commands inside a local WordPress wp-env Docker environment?▼

You can execute wp-cli commands inside a local WordPress wp-env Docker environment by using the wp-env run cli wp command syntax. This wraps command execution within the active container context.

How do I start and stop a WordPress wp-env development environment?▼

You can start, stop, restart, and update a WordPress wp-env development environment using built-in lifecycle management commands. This automates environment orchestration and reduces manual setup overhead.

Can I enable Xdebug for debugging WordPress plugins in a wp-env container?▼

Yes, you can enable Xdebug for debugging WordPress plugins in a wp-env container by running wp-env start with the xdebug flag. This provides debugging and environment-tuning capabilities inside Docker.

How do I perform database operations in a local WordPress Docker setup using wp-cli?▼

You can perform database operations in a local WordPress Docker setup by executing context-aware wp-cli commands through the wp-env run cli wp interface. This ensures database tasks run correctly inside the container.

What is the best way to automate local WordPress development environment setup with Docker?▼

The best way to automate local WordPress development environment setup with Docker is using a scriptable wp-env interface. This standardizes environment lifecycle management and wp-cli command execution, reducing errors.

Can I access the shell inside a wp-env Docker container to test WordPress themes?▼

Yes, you can access the shell inside a wp-env Docker container to test WordPress themes. The environment provides shell access and container-level debugging capabilities for plugin and theme testing.