magento2 – How to setup local development and database connection for Magento Commerce Cloud?

Here are the steps I already done, but still couldn’t figure out to to setup local development environment from Commerce Cloud.

  1. git pull the dev branch from magento commerce cloud

  2. export database dump and import to the local enviroment

  3. modify and base urls in core_config_data table

  4. download the media files into /pub/media from dev branch

  5. run “composer install” locally

  6. run magento installation command “bin/magento setup:install …” but getting the following error,

    Fatal error: Uncaught Error: Class ‘Locale’ not found in /usr/local/var/www/magento2/vendor/magento/framework/Locale/Bundle/DataBundle.php:64
    Stack trace:
    #0 /usr/local/var/www/magento2/vendor/magento/framework/Locale/Bundle/DataBundle.php(28): MagentoFrameworkLocaleBundleDataBundle->cleanLocale(‘en_US’)
    #1 /usr/local/var/www/magento2/vendor/magento/framework/Setup/Lists.php(96): MagentoFrameworkLocaleBundleDataBundle->get(‘en_US’)
    #2 /usr/local/var/www/magento2/vendor/magento/framework/Validator/Locale.php(42): MagentoFrameworkSetupLists->getLocaleList()
    #3 /usr/local/var/www/magento2/setup/src/Magento/Setup/Console/Command/InstallStoreConfigurationCommand.php(321): MagentoFrameworkValidatorLocale->isValid(‘en_US’)
    #4 /usr/local/var/www/magento2/setup/src/Magento/Setup/Console/Command/InstallStoreConfigurationCommand.php(241): MagentoSetupConsoleCommandInstallStoreConfigurationCommand->validateCodes(Object(MagentoFrameworkValidatorLocale), ‘en_US’, ‘language’)
    #5 /usr/local/var/www/magento2/setup/src in /usr/local/var/www/magento2/vendor/magento/framework/Locale/Bundle/DataBundle.php on line 64

however, when i check ➜ magento2 php -i | grep “Internationalization support” is says “Internationalization support => enabled”

My Other Confusion:
With Magento Open Source, I used to just change the database connection through app/etc/env.php, but with the files i pulled from magento cloud commerce, its missing app/etc/env.php

how do i set up database connection correctly for local?