Advertisement
Guest User

Untitled

a guest
Mar 14th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. login as: allweb6
  2. Pass : Supreme123
  3. Authenticating with public key "imported-openssh-key"
  4. Passphrase for key "imported-openssh-key":
  5. Last login: Tue Aug 8 20:30:38 2017 from 103.230.180.70
  6. [allweb6@whub49 ~]$ cd public_html
  7.  
  8. Setup Upgrade Using Command Line
  9. php bin/magento setup:upgrade
  10.  
  11. If you don’t want to remove pub/static files while installing/updating database then use following command.
  12. php bin/magento setup:upgrade --keep-generated
  13.  
  14. Cache Clean Using Command Line
  15. php bin/magento cache:clean
  16.  
  17. Cache Flush Using Command Line
  18. php bin/magento cache:flush
  19.  
  20. View cache status Using Command Line
  21. php bin/magento cache:status
  22.  
  23. Enable Cache Using Command Line
  24. php bin/magento cache:enable [cache_type]
  25.  
  26. Disable Cache Using Command Line
  27. php bin/magento cache:disable [cache_type]
  28.  
  29. Static Content Deploy Using Command Line (Use -f for force deploy on 2.2.x or later)
  30. php bin/magento setup:static-content:deploy
  31.  
  32. Static Content Deploy For Particular Language Using Command Line
  33. php bin/magento setup:static-content:deploy en_US
  34.  
  35. Static Content Deploy For Magento Backend Theme Using Command Line (Working on 2.1.1 or later)
  36. php bin/magento setup:static-content:deploy --theme="Magento/backend"
  37.  
  38. Static Content Deploy For Specific Themes Using Command Line (Working on 2.1.1 or later)
  39. php bin/magento setup:static-content:deploy --theme Magento/luma --theme Magento/second_theme
  40.  
  41. Exclude Themes on Static Content Deploy and does not minify HTML files Using Command Line (Working on 2.1.1 or later)
  42. php bin/magento setup:static-content:deploy en_US --exclude-theme Magento/luma --no-html-minify
  43.  
  44. Reindexing Using Command Line
  45. php bin/magento indexer:reindex
  46.  
  47. View the list of indexers Using Command Line
  48. php bin/magento indexer:info
  49.  
  50. View indexer status Using Command Line
  51. php bin/magento indexer:status
  52.  
  53. Show the mode of all indexers Using Command Line
  54. php bin/magento indexer:show-mode
  55.  
  56. See all modules Status Using Command Line
  57. php bin/magento module:status
  58.  
  59. Enable module Using Command Line
  60. php bin/magento module:enable Namespace_Module
  61.  
  62. Disable module Using Command Line
  63. php bin/magento module:disable Namespace_Module
  64.  
  65. Uninstall Module Using Command Line
  66. php bin/magento module:uninstall Namespace_Module
  67.  
  68. Check Current Mode Using Command Line
  69. php bin/magento deploy:mode:show
  70.  
  71. Change To Developer Mode Using Command Line
  72. php bin/magento deploy:mode:set developer
  73.  
  74. Change To Production Mode Using Command Line
  75. php bin/magento deploy:mode:set production
  76.  
  77. Run the single-tenant Compiler Using Command Line
  78. php bin/magento setup:di:compile
  79.  
  80. Unlock Admin User Using Command Line
  81. php bin/magento admin:user:unlock adminusername
  82.  
  83. Enable Maintenance Mode Using Command Line
  84. php bin/magento maintenance:enable
  85.  
  86. To enable maintenance mode for all clients except 192.0.0.1 and 192.0.0.2:
  87. php bin/magento maintenance:enable --ip=192.0.0.1 --ip=192.0.0.2
  88.  
  89. To clear the list of IPs.
  90. php bin/magento maintenance:enable --ip=none
  91.  
  92. Disable Maintenance Mode Using Command Line
  93. php bin/magento maintenance:disable
  94.  
  95. Check Maintenance Mode Status Using Command Line
  96. php bin/magento maintenance:status
  97.  
  98. Allow IP on Maintenance Mode Using Command Line
  99. php bin/magento maintenance:allow-ips --ip=192.0.0.1 --ip=192.0.0.2
  100.  
  101. Set Magento crontab Using Command Line
  102. php bin/magento cron:install --force
  103.  
  104. Use --force to rewrite an existing Magento crontab.
  105. To view the crontab, enter the following command as the Magento file system owner.
  106.  
  107. crontab -l
  108. Remove Magento crontab Using Command Line
  109. php bin/magento cron:remove
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement