magento2|magento2 指令整理

Magento CLI version 2.1.0
Usage:
command [options] [arguments]
Options:
--help (-h)--Display this help message显示帮助信息
--quiet (-q)--Do not output any message不输出任何消息
--verbose (-v|vv|vvv) --Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug增加消息的详细程度:1表示正常输出,2表示更详细的输出,3表示调试
--version (-V)--Display this application version显示此应用程序版本
--ansi--Force ANSI output强制ANSI输出
--no-ansi--Disable ANSI output禁用ANSI输出
--no-interaction (-n) --Do not ask any interactive question不要问任何交互式问题
Available commands:
help-- Displays help for a command显示命令的帮助
list-- Lists commands列出命令
admin
admin:user:create-- Creates an administrator创建管理员
admin:user:unlock-- Unlock Admin Account解锁管理员帐户
cache
cache:clean--Cleans cache type(s)清除缓存类型(s)
cache:disable--Disables cache type(s)禁用禁用缓存类型(s)
cache:enable--Enables cache type(s)启用缓存类型(s)
cache:flush--Flushes cache storage used by cache type(s)刷新缓存类型使用的缓存存储(s)
cache:status--Checks cache status检查缓存状态
catalog
catalog:images:resize--Creates resized product images创建调整大小的产品图像
catalog:product:attributes:cleanup--Removes unused product attributes.删除未使用的产品属性。
cron
cron:run--Runs jobs by schedule按计划运行作业
customer
customer:hash:upgrade--Upgrade customer's hash according to the latest algorithm根据最新的算法升级客户的散列
deploy
deploy:mode:set--Set application mode.应用程序模式。
deploy:mode:show--Displays current application mode.显示当前的应用程序模式。
dev
dev:source-theme:deploy--Collects and publishes source files for theme.收集并发布主题的源文件。
dev:tests:run--Runs tests运行测试
dev:urn-catalog:generate--Generates the catalog of URNs to *.xsd mappings for the IDE to highlight xml.将IDE的目录生成为* .xsd映射,以便IDE高亮显示xml。
dev:xml:convert--Converts XML file using XSL style sheets使用XSL样式表转换XML文件
i18n
i18n:collect-phrases--Discovers phrases in the codebase发现代码库中的短语
i18n:pack--Saves language package保存语言包
i18n:uninstall--Uninstalls language packages卸载语言包
indexer
indexer:info--Shows allowed Indexers显示允许的索引器
indexer:reindex--Reindexes Data重建索引数据
indexer:reset--Resets indexer status to invalid索引器状态重置为无效
indexer:set-mode--Sets index mode type设置索引模式类型
indexer:show-mode--Shows Index Mode显示索引模式
indexer:status--Shows status of Indexer显示索引器的状态
info
info:adminuri--Displays the Magento Admin URI显示Magento管理员URI
info:backups:list--Prints list of available backup files打印可用备份文件的列表
info:currency:list--Displays the list of available currencies显示可用货币的列表
info:dependencies:show-framework--Shows number of dependencies on Magento framework显示Magento框架上依赖项的数量
info:dependencies:show-modules--Shows number of dependencies between modules显示模块之间的依赖关系的数量
info:dependencies:show-modules-circular--Shows number of circular dependencies between modules显示模块之间的循环依赖关系的数量
info:language:list--Displays the list of available language locales显示可用语言区域的列表
info:timezone:list--Displays the list of available timezones显示可用时区的列表
maintenance
maintenance:allow-ips--Sets maintenance mode exempt IPs设置免维护IP模式
maintenance:disable--Disables maintenance mode禁用维护模式
maintenance:enable--Enables maintenance mode启用维护模式
maintenance:status--Displays maintenance mode status显示维护模式状态
module
module:disable--Disables specified modules禁用指定的模块
module:enable--Enables specified modules启用指定的模块
module:status--Displays status of modules显示模块的状态
module:uninstall--Uninstalls modules installed by composer卸载由作曲者安装的模块
sampledata
sampledata:deploy--Deploy sample data modules部署示例数据模块
sampledata:remove--Remove all sample data packages from composer.json从composer.json中删除所有示例数据包
sampledata:reset--Reset all sample data modules for re-installation重置所有样本数据模块以重新安装
setup
setup:backup--Takes backup of Magento Application code base, media and database备份Magento应用程序代码库,媒体和数据库
setup:config:set--Creates or modifies the deployment configuration创建或修改部署配置
setup:cron:run--Runs cron job scheduled for setup application运行计划安装应用程序的cron作业
setup:db-data:upgrade--Installs and upgrades data in the DB安装和升级数据库中的数据
setup:db-schema:upgrade--Installs and upgrades the DB schema安装并升级数据库模式
setup:db:status--Checks if DB schema or data requires upgrade检查数据库架构或数据是否需要升级
setup:di:compile--Generates DI configuration and all missing classes that can be auto-generated生成DI配置以及所有可以自动生成的缺失类
setup:install--Installs the Magento application安装Magento应用程序
setup:performance:generate-fixtures--Generates fixtures
setup:rollback--Rolls back Magento Application codebase, media and database回滚Magento应用程序代码库,媒体和数据库
setup:static-content:deploy--Deploys static view files部署静态视图文件
setup:store-config:set--Installs the store configuration安装商店配置
setup:uninstall--Uninstalls the Magento application卸载Magento应用程序
setup:upgrade--Upgrades the Magento application, DB data, and schema升级Magento应用程序,数据库数据和架构
theme
theme:uninstall--Uninstalls theme卸载主题
插件安装指令
【magento2|magento2 指令整理】 php -f bin/magento setup:upgrade &&php -f bin/magento indexer:reindex &&php -f bin/magento setup:static-content:deploy en_US zh_Hans_CN &&php -f bin/magento cache:flush &&php -f bin/magento cache:clean--*如果是开发环境不是生产环境,php -f bin/magento setup:static-content:deploy en_US zh_Hans_CN 指令可不执行!

    推荐阅读