How to Install Magento Cloud CLI on Ubuntu

Hi, welcome to my first blog post on Magento Cloud cli installation. As this is the starting of a new series I will try to share my experience on working with Magento cloud(Adobe Commerce Cloud).

I will be referring Adobe Commerce as Magento only as it was the old name of the framework so excuse me for this.

When you start using Magento Cloud the very first thing you need to do is to install the magento cloud cli as this provides lots of commands to work with the remote server like cloning the project, pushing the code, managing the resources as well as the branches and the access to the files and database. This comes with lots of tools and enrich your experience of magento cloud.

Lets begin with the installation now.

1. For installing move to a directory where you want to clone the project in most cases the web directory.

2. Install the installer

curl -sS https://accounts.magento.cloud/cli/installer | php

3. Add the command to bash profile.

export PATH=$PATH:$HOME/.magento-cloud/bin

4.Reload the updated bash profile.

. ~/.bash_profile

5. Hurrey! Your installation is complete. Check it by running the command

magento-cloud

You will something like below:
screenshot-magento-cloud-cli

Now, your magento-cloud cli is installed successfully and ready to use. When its installed let put it to some use then. See you in next post.

For further reading and insight you can check the documentation here.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *