All Projects → elgentos → magerun2-addons

elgentos / magerun2-addons

Licence: other
Addon modules for n98-magerun2

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to magerun2-addons

docker-magento2
Magento 2.4, Apache 2.4, PHP 7.4, MariaDB 10.4.16, Elasticsearch 7.6.0, Varnish 6.4.0
Stars: ✭ 47 (+147.37%)
Mutual labels:  magento2
pimcore4-magento2-connector
This is a deprecated repository. Please visit https://go.divante.co/pimcore-magento/ for newest information.
Stars: ✭ 14 (-26.32%)
Mutual labels:  magento2
magento2-module-slack
Magento 2 Module to send Notifications to a Slack Channel via Webhook.
Stars: ✭ 14 (-26.32%)
Mutual labels:  magento2
module-lazyload
magefan.com/magento-2-image-lazy-load-extension
Stars: ✭ 47 (+147.37%)
Mutual labels:  magento2
Handshake
A Laravel style wrapper around Magento 2.
Stars: ✭ 39 (+105.26%)
Mutual labels:  magento2
module-config-override
A Magento 2 module that overrides default configuration from file which can be added to version control.
Stars: ✭ 23 (+21.05%)
Mutual labels:  magento2
module-translation
magefan.com/magento-2-translation-extension
Stars: ✭ 35 (+84.21%)
Mutual labels:  magento2
magento2-dev-plus-exam
📚Magento 2 Certified Professional Developer Plus Exam
Stars: ✭ 79 (+315.79%)
Mutual labels:  magento2
magento2-sample-imageuploader
A Magento 2 sample module demonstrating how to upload an image file within a grid and form UI Component.
Stars: ✭ 27 (+42.11%)
Mutual labels:  magento2
enhanced-privacy
Magento 2 Enhanced Privacy extension for easier compliance with GDPR. Allows customers to delete, anonymize, or export their personal data.
Stars: ✭ 45 (+136.84%)
Mutual labels:  magento2
magento2-module-noreservations
No description or website provided.
Stars: ✭ 12 (-36.84%)
Mutual labels:  magento2
magento2
Mollie Payments for Magento 2
Stars: ✭ 70 (+268.42%)
Mutual labels:  magento2
m2install
Magento 2 Bash Install/Restore Script
Stars: ✭ 79 (+315.79%)
Mutual labels:  magento2
nosto-magento2
marketplace.magento.com/nosto-module-nostotagging.html
Stars: ✭ 19 (+0%)
Mutual labels:  magento2
magento2-prometheus-exporter
Simple Magento 2 Prometheus Exporter.
Stars: ✭ 40 (+110.53%)
Mutual labels:  magento2
Dev-Tools-Magento-2-Module
A collection of utilities meant to improve the experience of developing modules for Magento without breaking existing functionality.
Stars: ✭ 18 (-5.26%)
Mutual labels:  magento2
PagSeguro-Magento-Transparente-M2
Módulo PagSeguro para Magento 2
Stars: ✭ 15 (-21.05%)
Mutual labels:  magento2
magento2-catalog-lazy-load
Improve the load time of your Magento 2 categories pages by loading your images on demand with our Lazy Load Extension
Stars: ✭ 56 (+194.74%)
Mutual labels:  magento2
magento2-alsoviewed
Magento2 product suggestion module, based on customers activities
Stars: ✭ 25 (+31.58%)
Mutual labels:  magento2
magento2-disable-frontend
Magento 2 module to disable frontend
Stars: ✭ 29 (+52.63%)
Mutual labels:  magento2

magerun2 addons

Some additional commands for the excellent m98-magerun2 Magento 2 command-line tool.

Installation

There are a few options. You can check out the different options in the magerun2 Github wiki.

Here's the easiest:

  1. Create ~/.n98-magerun2/modules/ if it doesn't already exist.

     mkdir -p ~/.n98-magerun2/modules/
    
  2. Clone the magerun2-addons repository in there

     cd ~/.n98-magerun2/modules/ && git clone https://github.com/elgentos/magerun2-addons.git elgentos-addons
    
  3. It should be installed. To see that it was installed, check to see if one of the new commands is in there;

     magerun2 | grep elgentos
    

Commands

Configure ElasticSearch

Using this command you can check and optionally configure the ElasticSearch configuration in Magento. Supports ElasticSuite too. Default values might be opinionated.

$ magerun2 config:elasticsearch

Description:
  Check and optionally configure the Elasticsearch configuration

Usage:
  config:elasticsearch

Configure RabbitMQ

Using this command you can check and optionally configure the RabbitMQ configuration in Magento. Default values might be opinionated.

It will also ask you which consumers you want to run using RabbitMQ instead of MySQL. By default only async.operations.all runs through RabbitMQ.

$ magerun2 config:rabbitmq

Description:
  Check and optionally configure the RabbitMQ configuration

Usage:
  config:rabbitmq

Configure Redis

Using this command you can check and optionally configure the Redis configuration in Magento. Default values might be opinionated.

If you are running Magento 2.3.5 and upwards, it will ask you whether you want to enable L2 cache. You can read about the L2 cache in the Magento devdocs.

$ magerun2 config:redis

Description:
  Check and optionally configure the Redis configuration

Usage:
  config:redis

Configure Varnish

Using this command you can check and optionally configure the Varnish configuration in Magento. Default values might be opinionated.

$ magerun2 config:varnish

Description:
  Check and optionally configure the Varnish configuration

Usage:
  config:varnish

Generate Xdebug Step Filter Configuration

With this command, you can automatically fill the Xdebug Step Filters (Settings > PHP > Debug > Step Filters > Files) with all interceptors and proxies that are found in your installation.

$ magerun2 generate:xdebug-skip-filters

Description:
  Generate the Xdebug Skip Filter configuration [elgentos]

Usage:
  generate:xdebug-skip-filters

Dispatch/fire a Magento event

When building extensions, you often need to fire a certain event to trigger a function. With this command, you can choose one of the default events that can be found in the Magento core, or type in the name of another (custom) event. The command will also ask for any parameters.

You can instantiate an object and load a record into that object. You do this by using as parameter value Magento\Catalog\Model\Product:1337. This will instantiate the model Magento\Catalog\Model\Product and load entity 1337 in that model.

$ magerun2 dev:events:fire

It is also possible to give command line arguments. These are '--event' (-e for shortcut) and '--parameters' (-p for shortcut). Parameters can contain multiple parameters, in which the various parameters should be stringed together with ';' and the name/value pair should be stringed together with '::'. Be sure to enclose this in double quotes.

$ magerun2 dev:events:fire --event your_event_that_will_fire --parameters "product::Mage\Catalog\Model\Product:1337;testparam::testvalue"
Event your_event_that_will_fire has been fired with parameters;
 - object product: `Magento\Catalog\Model\Product` ID 1337
 - testparam: testvalue

Reindex Partially

This command lets you reindex any indexer partially, as long as the indexer implements executeList correctly.

$ magerun2 index:reindex-partial --help
                            
Usage:
  index:reindex-partial <indexer> <ids> (<ids>)...

Arguments:
  indexer                                        Name of the indexer.
  ids                                            (Comma/space) seperated list of entity IDs to be reindexed

Help:
  Reindex partially by inputting ids [elgentos]

Credits due where credits due

Thanks to Netz98 for creating the awesome Swiss army knife for Magento, magerun2.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].