Bash / CLI
Joomla! 6
Joomla! 5
Joomla! 4
CLI
Intermediate
Discover and Install Git-Deployed Extensions with extension:discover
Registers components, modules and plugins pulled from Git directly through the Joomla 5 and 6 CLI.
scripts/discover_install.sh
# 1) Escaneia novas extensões presentes nas pastas do Joomla
php cli/joomla.php extension:discover
# 2) Lista as extensões descobertas e seus Extension IDs
php cli/joomla.php extension:discover:list
# 3) Instala uma extensão específica pelo ID (ex: 447)
php cli/joomla.php extension:discover:install --eid=447
Newly discovered plugins start disabled until explicitly enabled.
Technical explanation and best practices
In Git-First deployments, after pulling a new extension onto the server, run extension:discover and extension:discover:install to register it and execute its install SQL without uploading ZIPs.