magento2常见的命令

在magento2中咱们常常会用到php bin\magento 命令:参数 来完成一些操做,因此就对命令作了一个总结php

常见的命令以下:缓存

php bin/magento list    查看全部命令列表spa

----------------------------moudule相关的参数--------------------------------------------blog

一、moudule:status    查看全部module的状态索引

二、moudule:disable Test_Hello(module的名称)     禁用此modulerem

三、moudule:enable Test_Hello(module的名称)  启用此module部署

四、module:installit

-----------------------------setup相关的参数--------------------------------------------class

一、setup:upgrade  更新数据module

二、setup:static-content:deploy    部署magento的静态内容

三、setup:cron:run   执行cron

 ----------------------------indexer相关的参数--------------------------------------------

 

一、indexer:status      索引的状态

二、indexer:reindex     刷新索引

三、indexer:reset        重置索引

 ----------------------------cache相关的参数--------------------------------------------

一、cache:status    缓存状态

二、cache:clean      清空缓存

三、cache:flush      刷新缓存

四、cache:enable    开启缓存

五、cache:disable    关闭缓存

相关文章
相关标签/搜索