Description of the problem
If you generate an add-on using the EE eecli.php method, the base add-on created will not update via the EE CP Add-on's panel.
If you increment the add-on version number, an update tab will be appear in the add-on CP area, but clicking on the update button for the add-on will have no effect.
Environment Details:
- Version: 7.4.11
- PHP Version 8.1
Possible Solution
It appears that the Addons.php update function only updates add-ons that include an mcp.addon.php file - even if the add-on does not have a backend (e.g. "has_cp_backend = 'n'"). So adding an mcp-route via the cli method (to index) resolves this issue, but this requirement is not apparent in the documentation.
A better solution would be fix the package_list method in ee/legacy/libraries/Addons.php so that it retrieves details of addons that don't have an mcp. file ...