hyva-exec-shell-cmd

Detect Magento environments and return shell command wrappers.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/Happy-Horizon/cursor-marketplace --skill hyva-exec-shell-cmd-happy-horizon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hyva-exec-shell-cmd
Source: https://github.com/Happy-Horizon/cursor-marketplace/tree/main/plugins/hyva-ai-tools/skills/hyva-exec-shell-cmd
Command: npx skills add https://github.com/Happy-Horizon/cursor-marketplace --skill hyva-exec-shell-cmd-happy-horizon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Centralizes detection of Magento development environments and provides a safe, consistent command-wrapping workflow for shell commands across different toolchains.

Core Features & Use Cases

  • Environment detection across Warden, docker-magento, DDEV, and local setups.
  • Provides a command wrapper to execute shell commands in the detected environment.
  • Use case: run maintenance tasks in a Magento project without manually switching environments.

Quick Start

From the Magento project root, run <skill_path>/scripts/detect_env.sh to determine the environment, then use the wrapper returned by the tool to execute your command.

Frequently Asked Questions about hyva-exec-shell-cmd

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

FAQPage Schema
How do I run shell commands consistently across different Magento development environments?

To run shell commands consistently across Magento environments, use a wrapper that detects Warden, docker-magento, DDEV, or local setups from the project root and returns the appropriate command execution string.

What is Magento environment detection and why do I need it for command execution?

Magento environment detection identifies whether your project runs under Warden, DDEV, docker-magento, or locally. You need it to avoid manually switching command syntax when executing maintenance tasks across different toolchains.

Can I use this wrapper to run Magento maintenance tasks in DDEV or Warden?

Yes, the wrapper supports running Magento maintenance tasks in DDEV and Warden, as well as docker-magento and local setups, by detecting the active environment and applying the correct command wrapper automatically.

How do I detect my Magento environment from the project root?

To detect your Magento environment from the project root, run the detection script which evaluates your setup and returns the matching wrapper command strings for subsequent shell execution.

Does the command wrapper work with local Magento setups or only Docker-based environments?

The command wrapper works with both local Magento setups and Docker-based environments. It detects Warden, docker-magento, DDEV, and local configurations to provide consistent command execution across all supported toolchains.

What's the best way to automate shell commands in Magento without manually checking the environment?

The best way to automate shell commands in Magento without manual environment checks is to use a detection wrapper that identifies the active toolchain and returns the correct command string for seamless execution.