CLI / Terminal Access
30-60 minAdvanced
Adobe Commerce (Magento) relies heavily on its CLI tool (`bin/magento`) for almost all administrative and deployment tasks.
Prerequisites
- PHP (Version matching Magento requirements)
- Composer
- Elasticsearch / OpenSearch
Advanced
Installing CLI
Magento is installed via Composer.
1
Install Project
1
Run composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .
2
Run bin/magento setup:install to configure the database and admin user
Example
composer install
bin/magento setup:install --base-url=http://localhost/ --db-host=localhost --db-name=magento --db-user=root --admin-firstname=Admin --admin-lastname=User --admin-email=admin@example.com --admin-user=admin --admin-password=Password123Verification Checklist
- bin/magento returns list of commands
- Admin panel accessible
Pro Tips
- In developer mode (`bin/magento deploy:mode:set developer`), static files are generated on demand (slow first load, fast debug).
- Use `bin/magento module:status` to check enabled modules.