CLI commands

You can enable or disable the profiler using CLI commands:

  • dev:profiler:enable <type> enables the profiler with type of html (default) or csvfile. When enabled, a flagfile var/profiler.flag is created.
  • dev:profiler:disable disables the profiler. When disabled, the flagfile var/profiler.flag is removed.

To enable dependency graphs, use the variable option.

To enable or disable the profiler:

  1. Log in to your Commerce server.

  2. Change to your Commerce installation directory.

  3. As the file system owner, enable the profiler:

    To enable the profiler using type html and create a flagfile:

    bin/magento dev:profiler:enable html
    

    To enable the profiler using type csvfile and create a flagfile:

    bin/magento dev:profiler:enable csvfile
    

    The output is saved to <project-root>/var/log/profiler.csv. The profiler.csv is overridden on each page refresh.

    To disable the profiler and remove the flagfile:

    bin/magento dev:profiler:disable
    
Previous pageBootstrap parameters
Next pageBase directory paths

Commerce