Warden Local Environment

Run Magento 2 CLI commands inside Warden-managed Docker containers.

2|3|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/caravanglory/magehub --skill warden-local-environment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Warden Local Environment
Source: https://github.com/caravanglory/magehub/tree/main/skills/devops/devops-warden
Command: npx skills add https://github.com/caravanglory/magehub --skill warden-local-environment

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the risk and friction of running Magento 2 command-line work on the host machine by keeping every operation inside a Warden-managed Docker environment.

Core Features & Use Cases

  • Container-safe CLI execution: Run Magento, Composer, PHP, and n98-magerun2 only inside the php-fpm container so versions, extensions, and file ownership stay aligned.
  • Operational environment control: Start, stop, inspect, and diagnose local stacks while preserving a safe path for reversible changes and clearly marked destructive actions.
  • Service troubleshooting: Manage Redis, Valkey, Varnish, OpenSearch, RabbitMQ, and Mutagen sync when caches, search, queues, or file propagation need targeted recovery.
  • Use case: A developer needs to reindex Magento, flush stale cache layers, verify queue health, and recover a stalled sync session without breaking the local environment.

Quick Start

Ask the skill to inspect your Warden Magento project and tell you the safest command to run for the specific local environment task you need.

Frequently Asked Questions about Warden Local Environment

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

FAQPage Schema
How do I run Magento 2 CLI commands safely inside a Warden Docker environment?

To run Magento 2 CLI commands safely in a Warden Docker environment, execute operations inside the php-fpm container using warden shell or warden debug, ensuring PHP versions and file ownership stay aligned without host-side toolchain drift.

What is the best way to fix a stalled Mutagen sync session in Magento?

Fixing a stalled Mutagen sync session requires targeted recovery through Warden-managed Docker commands, allowing developers to diagnose and restart file propagation safely without breaking the local Magento development environment.

Can I use Composer and n98-magerun2 inside Warden without installing PHP on my host?

Yes, you can use Composer and n98-magerun2 inside Warden without host-side PHP by running them container-first inside the php-fpm environment, which keeps extensions and versions strictly aligned with your Magento project.

How do I inspect and troubleshoot Redis, OpenSearch, and RabbitMQ services in a local Magento stack?

Inspect and troubleshoot Redis, OpenSearch, and RabbitMQ services in a local Magento stack by applying targeted Warden service commands to verify queue health, manage caches, and recover search functionality safely.

Are there guardrails for running destructive database actions in a Warden Magento environment?

Yes, Warden Magento environments apply explicit guardrails for read-only, reversible, data-changing, and destructive database actions, clearly marking dangerous operations to prevent accidental data loss during local development troubleshooting.