See also:
- app/etc/env.php — the place where Magento 2 stores database credentials, backend URL, enabled cache types, etc
- A bash script to automatic update a development environment from a production Magento 2 site
- A bash script to automatic update a production Magento 2 site from a development environment
- How to get a Magento 2 store’s root URL using the command line?