setup:install
Installs Magento — creates schema, data, admin user, and base config. Run once when bringing a fresh database online.
Synopsis
bin/magento setup:installExamples
Minimum-viable install. Real installs add Elasticsearch host, Redis cache backend, etc.
bin/magento setup:install --db-host=localhost --db-name=magento --db-user=magento --db-password=secret --admin-firstname=Store --admin-lastname=Owner [email protected] --admin-user=admin --admin-password=Adm1n123 --base-url=http://magento.test/ --language=en_US --currency=USD --timezone=America/New_York --use-rewrites=1See also
Related commands in setup
Other setup:* commands you might want next.
setup:backup
Takes backup of Magento Application code base, media and database
setup:config:set
Creates or modifies the deployment configuration
setup:db-data:upgrade
Upgrades only the database data (without schema changes).
setup:db-declaration:generate-patch
Generates a data or schema patch class skeleton inside a module's Setup/Patch/ directory.
setup:db-declaration:generate-whitelist
Generates a db_schema_whitelist.json file alongside the module's db_schema.xml. Run after editing db_schema.xml.
setup:db-schema:upgrade
Upgrades only the database schema (without data fixes). Used for staged upgrades.
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.