Some Adobe Commerce settings should never change through the admin, such as base URLs or payment modes on staging.
bin/magento config:set --lock-env web/secure/base_url https://staging.example.com/
The value is written to app/etc/env.php and the field is disabled in the admin (Adobe’s reference). Use --lock-config instead to write it to config.php and share it across environments. To read a value back, use config:show.
