Make sure you have Node v12 or newer
Initialize app with
Enter the app's directory
Start up the app with
In addition, before setting up, make sure you have installed the libraries required to build the PHP. Also, make sure to install Docker and PHPBrew in your system. See more in the detailed guides below:
To create a new app, you may choose one of the following methods:
npx create-magento-app my-app
npm init magento-app my-app
yarn create magento-app my-app
Running any of these commands will create a directory called
my-app inside the current folder. Inside that directory, it will generate the initial project structure and install the transitive dependencies. Learn more:
To start the app, navigate to its directory and run the
cd my-appnpm start
This command will start Docker services, start Magento and open your app in the browser.
Create Magento App choose an available port for Magento 2 so it can vary. By default, it will use port 80 so the URL for the store will be http://localhost:80/.