set_cloud_config
Set a Magento Cloud environment configuration value using SSH, with optional scope and scope_code to target specific websites or stores.
Instructions
Set a Magento configuration value on a Cloud environment by running bin/magento config:set via SSH. Use the scope/scope_code parameters to target a specific website or store view.
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>",
"environment": "<environment>",
"path": "<path>",
"value": "<value>"
},
"name": "set_cloud_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The configuration path, e.g. 'web/secure/base_url' or 'general/store_information/name' | |
| scope | No | The configuration scope. Defaults to 'default' (global) if omitted. | |
| value | Yes | The value to set for the configuration path | |
| project | Yes | The Magento Cloud project ID | |
| encrypted | No | Encrypt the value before saving (for sensitive data like API keys). | |
| scope_code | No | The website code or store view code the scope applies to, e.g. 'base' or 'default'. Required when scope is 'websites' or 'stores'. | |
| environment | Yes | The environment name, e.g. 'staging', 'integration' |