The list of the Magento 2 embedded console commands

i18n:collect-phrases
module:disable
command-line
module:enable

(Dmitry Fedyuk) #1

See also:

\Magento\Setup\Console\CommandList::getCommandsClasses():

Command PHP class Meaning
admin:user:create How to create a backend (administrative) account from the command line? Magento\Setup\Console\Command\AdminUserCreateCommand Creates an administrator account.
setup:backup Magento\Setup\Console\Command\BackupCommand Backing up the Magento files and database.
setup:config:set Magento\Setup\Console\Command\ConfigSetCommand Creates or modifies the deployment configuration.
cron:run Magento\Cron\Console\Command\CronCommand Runs jobs by schedule.
setup:cron:run Magento\Setup\Console\Command\CronRunCommand Runs cron job scheduled for setup application.
setup:db-data:upgrade Magento\Setup\Console\Command\DbDataUpgradeCommand Installs and upgrades data in the DB.
setup:db-schema:upgrade Magento\Setup\Console\Command\DbSchemaUpgradeCommand Installs and upgrades the DB schema.
setup:db:status Magento\Setup\Console\Command\DbStatusCommand Checks if DB schema or data requires upgrade.
info:dependencies:show-framework Magento\Setup\Console\Command\DependenciesShowFrameworkCommand Shows number of dependencies on Magento framework.
info:dependencies:show-modules-circular Magento\Setup\Console\Command\DependenciesShowModulesCircularCommand Shows number of circular dependencies between modules.
info:dependencies:show-modules Magento\Setup\Console\Command\DependenciesShowModulesCommand Shows number of dependencies between modules.
setup:di:compile Magento\Setup\Console\Command\DiCompileCommand Generates DI configuration and all missing classes that can be auto-generated.
setup:performance:generate-fixtures Magento\Setup\Console\Command\GenerateFixturesCommand Generates fixtures.
i18n:collect-phrases Magento\Setup\Console\Command\I18nCollectPhrasesCommand Discovers phrases in the codebase.
i18n:pack Magento\Setup\Console\Command\I18nPackCommand Saves language package.
info:adminuri Magento\Setup\Console\Command\InfoAdminUriCommand Displays the Magento Admin URI.
info:backups:list Magento\Setup\Console\Command\InfoBackupsListCommand Prints list of available backup files.
info:currency:list Magento\Setup\Console\Command\InfoCurrencyListCommand Displays the list of available currencies.
info:language:list Magento\Setup\Console\Command\InfoLanguageListCommand Displays the list of available language locales.
info:timezone:list Magento\Setup\Console\Command\InfoTimezoneListCommand Displays the list of available timezones.
setup:install Magento\Setup\Console\Command\InstallCommand Installs the Magento application.
setup:store-config:set Magento\Setup\Console\Command\InstallStoreConfigurationCommand Installs the store configuration. Deprecated since 2.2.0. Use config:set instead.
module:enable Magento\Setup\Console\Command\ModuleEnableCommand Enables specified modules.
module:disable Magento\Setup\Console\Command\ModuleDisableCommand Disables specified modules.
module:status Magento\Setup\Console\Command\ModuleStatusCommand Displays status of modules.
module:uninstall Magento\Setup\Console\Command\ModuleUninstallCommand Uninstalls modules installed by composer.
maintenance:allow-ips Magento\Setup\Console\Command\MaintenanceAllowIpsCommand Maintain the list of exempt IP addresses during the Maintenance mode.
maintenance:disable Magento\Setup\Console\Command\MaintenanceDisableCommand Disables maintenance mode.
maintenance:enable Magento\Setup\Console\Command\MaintenanceEnableCommand Enables maintenance mode.
maintenance:status Magento\Setup\Console\Command\MaintenanceStatusCommand Displays maintenance mode status.
setup:rollback Magento\Setup\Console\Command\RollbackCommand Restores the Magento files and database from a backup: 12.
setup:upgrade Magento\Setup\Console\Command\UpgradeCommand Upgrades the Magento application, DB data, and schema.
setup:uninstall Magento\Setup\Console\Command\UninstallCommand Uninstall the Magento software.

How to add custom console commands and handle them?
How does Magento 2 register its console commands
«indexer:set-mode» switching the indexers mode from the command line
How to create a backend (administrative) account from the command line?
How to call a standard console command from a custom one?
(Dmitry Fedyuk) #2

dev:urn-catalog:generate


(Dmitry Fedyuk) #3

indexer:set-mode


(Dmitry Fedyuk) #4

Some new commands in Magento 2.2: