Skip to content

Commit

Permalink
Improve magento quickstart with specific info about sampledata [skip …
Browse files Browse the repository at this point in the history
…ci][ci skip]
  • Loading branch information
rfay committed Jul 14, 2021
1 parent 9b047b2 commit b7e1cd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/users/cli-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,13 @@ ddev ssh
bin/magento setup:install --base-url=https://ddev-magento2.ddev.site/ --cleanup-database --db-host=db --db-name=db --db-user=db --db-password=db --elasticsearch-host=elasticsearch --admin-firstname=Magento --admin-lastname=User --admin-email=user@example.com --admin-user=admin --admin-password=admin123 --language=en_US
bin/magento deploy:mode:set developer
bin/magento module:disable Magento_TwoFactorAuth
bin/magento setup:di:compile
bin/magento cache:flush
```

Of course, change the admin name and related information is needed. The project name here is derived from the directory name (ddev-magento2 in this example). Your project name (and thus the `setup:store-config:set --base-url`) will almost certainly be different.

You may want to add the [Magento 2 Sample Data](https://devdocs.magento.com/guides/v2.4/install-gde/install/sample-data-after-composer.html).
You may want to add the [Magento 2 Sample Data](https://devdocs.magento.com/guides/v2.4/install-gde/install/sample-data-after-composer.html) with `bin/magento sampledata:deploy` (inside the web container).

Note that Magento 2 is a huge codebase and using `nfs_mount_enabled: true` is recommended for performance on macOS and Windows, see [docs](performance/#using-nfs-to-mount-the-project-into-the-container).

Expand Down

0 comments on commit b7e1cd5

Please sign in to comment.