Step 2, Install the CLI
Install the command-line interface (CLI)
The Magento Enterprise Cloud Edition command-line interface (CLI) helps you manage your projects on Magento Enterprise Cloud Edition.
To install the Magento Enterprise Cloud Edition CLI:
- Log in to your local development machine, or switch to, the Magento file system owner.
- Change to a directory to which the Magento file system owner has write access (for example, the web server docroot).
Enter the following command:
curl -sS https://accounts.magento.cloud/cli/installer | php
After the CLI downloads, an operating system-specific command displays.
For example, on Ubuntu and CentOS, the command is similar to:
For more information about the user shell profile, see .bash_profile vs .bashrc
You can also add the
<magento user home dir>/.magento-cloud/binto the Magento user’s
PATH. If the user name is
magento_user, the command is similar to the following:
Consult operating system documentation for details.
magento-cloudcommand is in your path by entering the following command: