Magento Cloud Command Line Interface is a project and environment management tool for Magento Cloud that implements many of the features of the Project web interface. This is done using various Magento 2 CLI commands.
Step 1. Login the magento cloup on the chrome browser.
Step 2. Go to our project root direactory in CLI.
Step 3.Install the magento-cloud CLI:
curl -sS https://accounts.magento.cloud/cli/installer | php
Step 4. Use the following command to add magento-cloud CLI to the bash profile:
export PATH=$PATH:$HOME/.magento-cloud/bin
Step 5. Restart the modernized bash profile:
. ~/.bash_profile
Step 5. Run the command on magento cli:
magento-cloud and check the chrome browser for authentication.
Step 6. Check that the magento-cloud command is in your path. The following piece of code lists common Magento CLI commands:
magento-cloud list
Step 7. For database backup:
magento-cloud db:dump
Step 7. For checking the log:
magento-cloud log
bluethinkinc_blog
2022-11-16