Lack of interest Add xf:addon-download CLI command in cmd.php

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

ibnesayeed

Well-known member
To automate the process of add-on installation/upgrade, a crucial step is to first acquire them from different places. The popularity of add-ons like Add-on Install & Upgrade shows their usefulness. However, they require certain directories to be writable by the user under which the web server is running. This causes some discomfort to those who would prefer tighter file permissions on their file system to minimize attacks. The XF CLI however is in better condition to perform something like this. The good news is, xf:addon-install and xf:addon-upgrade already exist, but they are missing the functionality of acquiring add-on files.

I am proposing an xf:addon-download <location> [--type=xfrm --credentials=...] (or a more suitable name) command that supports downloading add-on files from a local directory elsewhere in the file system, a remote HTTP/HTTPS URL, XF Resource Manager (installed here or on any domain), or a Git repository (or other popular places where XF add-ons are generally being hosted). This command can copy/download, extract (zip/tar/tar.gz etc. files), and place them in the appropriate location. From there a subsequent install or upgrade command can take care of it.

As an additional feature, the command can also accept an input file for batch processing that can list all the locations (and corresponding types and credentials as applicable) in a structured way, like many dependency management systems have similar files.
 
Last edited:
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
Top Bottom