push_branch
Push a local git branch to a Magento Cloud project using SSH certificate authentication, no separate git credentials required.
Instructions
Push a local git branch to a Magento Cloud project. Uses SSH certificate authentication — no separate git credentials needed. The branch must exist locally.
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": {
"project": "<project>",
"repo_path": "<repo_path>",
"local_branch": "<local_branch>"
},
"name": "push_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | The Magento Cloud project ID | |
| repo_path | Yes | Absolute path to the local git repository, e.g. '/home/user/myproject' | |
| local_branch | Yes | Local branch name to push, e.g. 'feature-xyz' | |
| remote_branch | No | Remote branch name. Defaults to the same as local_branch. |