Skip to content

Instantly share code, notes, and snippets.

@lonalore
Last active July 27, 2017 22:38
Show Gist options
  • Save lonalore/89bde4147df3a39fff3ad51262f5352c to your computer and use it in GitHub Desktop.
Save lonalore/89bde4147df3a39fff3ad51262f5352c to your computer and use it in GitHub Desktop.
e107 command line interface (e107cli ??)

e107 command line interface (e107cli ??)

It would be nice if there was something like Drush (for Drupal) and WP-CLI (for WordPress) and Joomlatools Console (for Joomla).

Some basic, planned features:

  • ability to make new e107 installation
  • ability to modify core/plugin preferences
  • ability to install/uninstall plugin
  • ability to modify site theme

Download e107 files (from github??):

e107cli dl e107 --version=latest

Install e107:

e107cli site-install --db-url='mysql://[db_user]:[db_pass]@localhost/[db_name]' --site-name=Example --account-name=admin --account-pass=pass --account-email=email

Donwload plugin and place it to e107_plugins folder:

e107cli dl google_analytics --version=latest

to be discussed: need a place to store plugins (e107.org?) and provide a service (rest api?) to handle requests, e.g: http://e107.org/api?name=google_analytics&type=plugin I think the best would be a json formatted resoponse, contains status (found/not found), and details about project (available versions, and URLs to download)

Install downloaded plugin:

e107cli en google_analytics

Uninstall a plugin:

e107cli dis google_analytics --remove-tables --remove-icons --remove-files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment