Magento 2 CLI Install Ubuntu 14.04

Stuck on the first steps of the CLI install for your Magento 2 project?


This is the terrible documentation provided by Magento.


Here’s how you quickly setup Magento CLI so you can use the command magento instead of of this garbage su <Magento file system owner> -s /bin/bash -c <command>.

Example path to Magento install: /var/www/magento2
File owner / super user: myuser

sudo ln -s /var/www/magento2/bin/magento /usr/local/bin/magento

That’s it! The fact that Magento didn’t take a minute to add a few examples for popular operating systems is disappointing. We’re simply creating a symbolic link executable within the system path of your user.