Folder Structure

Primary Directories

  • app/ — Magento application code, custom modules and themes
  • bin/ — Magento CLI binary
  • dev/ — Development tools and test scaffolding
  • generated/ — Auto-generated code and metadata
  • lib/ — Internal Magento libraries and framework internals
  • patches/ — Patch files applied to vendor modules/packages
  • phpserver/ — PHP built-in server router/config helpers
  • pub/ — Public web root and browser-accessible assets
  • setup/ — Setup, installer and schema tooling
  • var/ — Runtime cache, logs, sessions and transient data

Important Root Files

  • .htaccess
  • .user.ini
  • deploy.sh
  • Gruntfile.js.sample
  • grunt-config.json.sample

Operational Notes

  • generated/ should be treated as build/runtime output.
  • var/ should be treated as runtime output (cache/log/session).
  • patches/ includes multiple production-relevant fixes, including rewards, braintree/paypal, USPS, and security-related composer patching.