Skip to content

List Modules Command

The mm:list-modules command displays all available modules from the Module Manager registry.

Usage

bash
php artisan mm:list-modules

Description

This command retrieves and displays a list of all modules available in the Module Manager registry. It provides a convenient way to browse the modules that can be installed in your application.

When executed, this command performs the following actions:

  1. Connect to Registry: Connects to the Module Manager registry using your API key.

  2. Fetch Modules: Retrieves the list of available modules.

  3. Display Table: Shows a formatted table with the ID, name, and vendor name of each available module.

Example

bash
$ php artisan mm:list-modules
Available modules:
+----+----------+---------------------+
| ID | Name     | Vendor Name         |
+----+----------+---------------------+
| 1  | blog     | e2tmk/blog-module   |
| 2  | shop     | e2tmk/shop-module   |
| 3  | cms      | e2tmk/cms-module    |
| 4  | cart     | e2tmk/cart-module   |
| 5  | api      | e2tmk/api-module    |
+----+----------+---------------------+

Notes

  • This command requires a valid API key for the Module Manager registry.
  • The command only shows modules available in the registry, not necessarily those installed in your application.
  • Use the mm:require-module command to install any of the listed modules.