Windows requirements
Last updated
Last updated
To install WSL2 on Windows follow .
On Windows with WSL, it is recommended to use . By using it you can open different shells and access different WSL distros in the same place, which is quite handy.
VSCode has excellent integration with WSL, so you can run commands, edit code and debug it inside a single editor. .
Go to Docker Desktop settings > General and make sure that Use the WSL 2 based engine checkbox is checked.
Then, go to Resources >WSL Integration and enable WSL integration into your distro.
Toggle your distro and click Apply & Restart.
Since magento-scripts 1.4.0 CMA will also check installed dependencies before starting the application, and if they are missing will provide instructions on how to install them!
Since magento-scripts@1.7.0 this part will be done automatically.
To work with Magento you need access keys to access the Magento repository.
Generate Access Keypair
Now you have a public key and private key values.
To use them you have 2 options:
Use COMPOSER_AUTH
environmental variable
This option is used as a global variable on your machine.
Replace <public key>
and <private key>
with your public and private key.
Add the result to your .bashrc
or .zshrc
and reload your terminal.
Use auth.json file
This option is used on a per-project basis, so your credentials will be always correct no matter which project you are working on.
Create auth.json
file in the root of your project and inside put the following content using the same <public key>
and <private key>
you obtained before:
Download and install .
Full list of dependencies for each Linux distro available .
To install PHPBrew on Linux you will need to follow instructions or use the commands below:
Go to
Start command description can be found . To access Magento CLI, Composer and PHP use command.
As an option, you can run CMA on Windows using a Linux VM running in (free) or (paid).
We recommend using or distros, although , and distros based on apt
, pacman
, yum
, dnf
package managers should also work.
for this option is the same as installing on a common Linux platform.