generate_cpanel_yml
Creates or updates a .cpanel.yml deployment specification, defining the target website directory and optional build commands for cPanel Git deployments.
Instructions
Generate or update a .cpanel.yml deployment specification in a repository or directory
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target_dir": "<target_dir>",
"deploy_path": "<deploy_path>"
},
"name": "generate_cpanel_yml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_dir | Yes | Directory where .cpanel.yml should be written (repository root) | |
| deploy_path | Yes | Target website directory where files will be copied (e.g. '/home/user/public_html') | |
| custom_commands | No | Optional build commands to run before copying (e.g. ['npm install', 'npm run build']) |