Перечень встроенных консольных команд

консольные-команды

(Дмитрий Федюк) #1

Смотрите также: как добавлять и обрабатывать своим модулем дополнительные консольные команды.

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

Команда Класс PHP
[`admin:user:create`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/AdminUserCreateCommand.php#L47) [Как создать учётную запись администратора с командной строки?](https://mage2.ru/t/topic/154) [`\Magento\Setup\Console\Command\AdminUserCreateCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/AdminUserCreateCommand.php)
[`setup:backup`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/BackupCommand.php#L104) [`\Magento\Setup\Console\Command\BackupCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/BackupCommand.php)
[`setup:config:set`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/ConfigSetCommand.php#L62) [`\Magento\Setup\Console\Command\ConfigSetCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/ConfigSetCommand.php)
[`setup:cron:run`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/CronRunCommand.php#L66) [`\Magento\Setup\Console\Command\CronRunCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/CronRunCommand.php)
[`setup:db-data:upgrade`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/DbDataUpgradeCommand.php#L54) [`\Magento\Setup\Console\Command\DbDataUpgradeCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/DbDataUpgradeCommand.php)
[`setup:db-schema:upgrade`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/DbSchemaUpgradeCommand.php#L54) [`\Magento\Setup\Console\Command\DbSchemaUpgradeCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/DbSchemaUpgradeCommand.php)
[`setup:db:status`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/DbStatusCommand.php#L52) [`\Magento\Setup\Console\Command\DbStatusCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/DbStatusCommand.php)
[`info:dependencies:show-framework`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/DependenciesShowFrameworkCommand.php#L43) [`\Magento\Setup\Console\Command\DependenciesShowFrameworkCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/DependenciesShowFrameworkCommand.php)
[`info:dependencies:show-modules-circular`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/DependenciesShowModulesCircularCommand.php#L23) [`\Magento\Setup\Console\Command\DependenciesShowModulesCircularCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/DependenciesShowModulesCircularCommand.php)
[`info:dependencies:show-modules`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/DependenciesShowModulesCommand.php#L23) [`\Magento\Setup\Console\Command\DependenciesShowModulesCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/DependenciesShowModulesCommand.php)
[`setup:di:compile`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php#L32) [`\Magento\Setup\Console\Command\DiCompileCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php)
[`setup:di:compile-multi-tenant`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/DiCompileMultiTenantCommand.php#L60) [`\Magento\Setup\Console\Command\DiCompileMultiTenantCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/DiCompileMultiTenantCommand.php)
[`setup:performance:generate-fixtures`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/GenerateFixturesCommand.php#L47) [`\Magento\Setup\Console\Command\GenerateFixturesCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/GenerateFixturesCommand.php)
[`i18n:collect-phrases`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/I18nCollectPhrasesCommand.php#L35) [`\Magento\Setup\Console\Command\I18nCollectPhrasesCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/I18nCollectPhrasesCommand.php)
[`i18n:pack`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/I18nPackCommand.php#L45) [`\Magento\Setup\Console\Command\I18nPackCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/I18nPackCommand.php)
[`info:adminuri`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/InfoAdminUriCommand.php#L41) [`\Magento\Setup\Console\Command\InfoAdminUriCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/InfoAdminUriCommand.php)
[`info:backups:list`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/InfoBackupsListCommand.php#L54) [`\Magento\Setup\Console\Command\InfoBackupsListCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/InfoBackupsListCommand.php)
[`info:currency:list`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/InfoCurrencyListCommand.php#L40) [`\Magento\Setup\Console\Command\InfoCurrencyListCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/InfoCurrencyListCommand.php)
[`info:language:list`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/InfoLanguageListCommand.php#L40) [`\Magento\Setup\Console\Command\InfoLanguageListCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/InfoLanguageListCommand.php)
[`info:timezone:list`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/InfoTimezoneListCommand.php#L40) [`\Magento\Setup\Console\Command\InfoTimezoneListCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/InfoTimezoneListCommand.php)
[`setup:install`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/InstallCommand.php#L112) [`\Magento\Setup\Console\Command\InstallCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/InstallCommand.php)
[`setup:store-config:set`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/InstallStoreConfigurationCommand.php#L72) [`\Magento\Setup\Console\Command\InstallStoreConfigurationCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/InstallStoreConfigurationCommand.php)
[`module:enable`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/ModuleEnableCommand.php#L18) [`\Magento\Setup\Console\Command\ModuleEnableCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/ModuleEnableCommand.php)
[`module:disable`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/ModuleDisableCommand.php#L18) [`\Magento\Setup\Console\Command\ModuleDisableCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/ModuleDisableCommand.php)
[`module:status`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/ModuleStatusCommand.php#L40) [`\Magento\Setup\Console\Command\ModuleStatusCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/ModuleStatusCommand.php)
[`module:uninstall`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/ModuleUninstallCommand.php#L177) [`\Magento\Setup\Console\Command\ModuleUninstallCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/ModuleUninstallCommand.php)
[`maintenance:allow-ips`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/MaintenanceAllowIpsCommand.php#L73) [`\Magento\Setup\Console\Command\MaintenanceAllowIpsCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/MaintenanceAllowIpsCommand.php)
[`maintenance:disable`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/MaintenanceDisableCommand.php#L21) [`\Magento\Setup\Console\Command\MaintenanceDisableCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/MaintenanceDisableCommand.php)
[`maintenance:enable`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/MaintenanceEnableCommand.php#L21) [`\Magento\Setup\Console\Command\MaintenanceEnableCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/MaintenanceEnableCommand.php)
[`maintenance:status`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/MaintenanceStatusCommand.php#L42) [`\Magento\Setup\Console\Command\MaintenanceStatusCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/MaintenanceStatusCommand.php)
[`setup:rollback`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/RollbackCommand.php#L101) [`\Magento\Setup\Console\Command\RollbackCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/RollbackCommand.php)
[`setup:upgrade`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/UpgradeCommand.php#L57) [`\Magento\Setup\Console\Command\UpgradeCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/UpgradeCommand.php)
[`setup:uninstall`](https://github.com/magento/magento2/blob/22629abe10f9c640fe47b6081d57fedccdea8e0f/setup/src/Magento/Setup/Console/Command/UninstallCommand.php#L36) [`\Magento\Setup\Console\Command\UninstallCommand`](https://github.com/magento/magento2/blob/develop/setup/src/Magento/Setup/Console/Command/UninstallCommand.php)

Как создать учётную запись администратора с командной строки?