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:

  1. Log in to your local development machine, or switch to, the Magento file system owner.
  2. Change to a directory to which the Magento file system owner has write access (for example, the web server docroot).
  3. Enter the following command:

    curl -sS https://accounts.magento.cloud/cli/installer | php
    
  4. After the CLI downloads, an operating system-specific command displays.

    For example, on Ubuntu and CentOS, the command is similar to:

    source /home/magento_user/.bashrc

    For more information about the user shell profile, see .bash_profile vs .bashrc

    You can also add the <magento user home dir>/.magento-cloud/bin to the Magento user’s PATH. If the user name is magento_user, the command is similar to the following:

    export PATH=$PATH:/home/magento_user/.magento-cloud/bin
    

    Consult operating system documentation for details.

  5. Verify the magento-cloud command is in your path by entering the following command:

    magento-cloud list
    

Next step

Step 3, Enable Secure Shell (SSH)