DEV Community

Yegor Shytikov
Yegor Shytikov

Posted on

Login and SSH to Magento Cloud

Install the magento-cloud CLI.

curl -sS https://accounts.magento.cloud/cli/installer | PHP
Enter fullscreen mode Exit fullscreen mode

Add magento-cloud CLI to the bash profile.

export PATH=$PATH:$HOME/.magento-cloud/bin
Enter fullscreen mode Exit fullscreen mode

Consult operating system documentation for details.

Reload the updated bash profile.

. ~/.bash_profile
Enter fullscreen mode Exit fullscreen mode

To initiate the CLI, call magento-cloud and enter your Cloud account credentials when prompted.

Run:

magento-cloud login
Enter fullscreen mode Exit fullscreen mode

SSH

magento-cloud ssh 
Enter fullscreen mode Exit fullscreen mode

Top comments (0)