magentoShell, CLI


Remarks

Basics

  • You need to have a Linux command line or connect using SSH to your server in order to use shell scripts.
  • Go to your MAGENTO_ROOT/shell
  • Script can be run by typing i.e.
php -f indexer.php help

Core shell methods by files

  1. abstract.php

  2. indexer.php

  3. compiler.php

  4. log.php

Custom php shell scripts

Sometimes we need to access Magento outside of a webbrowser to ommmit execution times or set different things that won't affect the frontend.

There are 2 ways to bootstrap Magento but only one is the Magento way. Read more above in examples section.