eshiol / j2xml

J2XML
http://www.eshiol.it/k3u
17 stars 6 forks source link

Please (!) create a CLI for import and export #68

Open fabpiaf opened 6 months ago

fabpiaf commented 6 months ago

Is your feature request related to a problem? Please describe.

In order to backup and restore via command line please to provide a simple CLI

Describe the solution you'd like

# export (e.g.)
php cli/joomla.php j2xml:export --users --fields --menues --compress --password 1234 --output j2.xml.gz

# import (e.g.)
php cli/joomla.php j2xml:import --input j2.xml.gz --password 1234

Additional context

PLEASE! Its the 21st century and joomla luckily began to provide means for CLI usage.

https://docs.joomla.org/J4.x:Writing_A_CLI_Application