1.更新版本
composer require magento/product-community-edition 2.1.5 –no-update
2.更新文件
composer update
3. 安装并更新模块
php bin/magento setup:install
php bin/magento setup:upgrade
4.编译
php bin/magento setup:di:compile
5.清理缓存
php bin/magento cache:clean
php bin/magento cache:flush
6.更新索引
php bin/magento indexer:reset
php bin/magento indexer:reindex
7.模块操作
php bin/magento module:status //查看状态
php bin/magento module:disable Magento_Wishlist //Disable模块
php bin/magento module:enable Magento_Wishlist //Enable模块
php bin/magento module:uninstall Magento_Wishlist //卸载模块
8.编译模板文件
php bin/magento setup:static-content:deploy
php bin/magento setup:static-content:deploy -t XXXXXX/XXXXXX
9.模式设置
bin/magento deploy:mode:status
bin/magento deploy:mode:set production
bin/magento deploy:mode:set developer
10.创建账号
sudo php bin/magento admin:user:create --admin-user="testliu" --admin-password="123456q" --admin-email="tstliu@hotmail.com" --admin-firstname="test" --admin-lastname="liu"