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.
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' |