warden_php_script
Execute PHP scripts within the php-fpm container of a Warden-managed Magento 2 environment, specifying project and script paths with optional arguments for automation tasks.
Instructions
Run a PHP script inside the php-fpm container
Input Schema
Name | Required | Description | Default |
---|---|---|---|
args | No | Additional arguments to pass to the script | |
project_path | Yes | Path to the project directory | |
script_path | Yes | Path to the PHP script relative to project root |
Input Schema (JSON Schema)
{
"properties": {
"args": {
"default": [],
"description": "Additional arguments to pass to the script",
"items": {
"type": "string"
},
"type": "array"
},
"project_path": {
"description": "Path to the project directory",
"type": "string"
},
"script_path": {
"description": "Path to the PHP script relative to project root",
"type": "string"
}
},
"required": [
"project_path",
"script_path"
],
"type": "object"
}