2017 © Pedro Peláez
 

library eecli

Command line interface for ExpressionEngine

image

eecli/eecli

Command line interface for ExpressionEngine

  • Thursday, December 15, 2016
  • by rsanchez
  • Repository
  • 5 Watchers
  • 40 Stars
  • 3,178 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 14 Forks
  • 3 Open issues
  • 16 Versions
  • 4 % Grown

The README.md

eecli

eecli is a command line interface for ExpressionEngine 2. It can be used to:, (*1)

  • aid in development, like creating new channels or generating a custom addon.
  • run post-deployment tasks on your staging/production server(s), like clearing cache.
  • automate critical tasks, like database backup
  • build your own custom CLI commands, like import scripts or cron jobs
  • debug using an interactive shell

Screencast of a few example commands, (*2)

Installation

The preferred installation method is to install globally with Composer. Refer the official composer documentation for more information on installing Composer globally. Run this at the command line:, (*3)

$ composer global require eecli/eecli

Make sure your global Composer installation's bin folder is added to your PATH in your ~/.bash_profile (or ~/.profile or ~/.bashrc or ~/.zshrc) so that you may run the binary eecli from the command line:, (*4)

export PATH=~/.composer/vendor/bin:$PATH

For more installation methods, please see the full Installation guide in the Wiki., (*5)

Usage

$ eecli <command> [options] [argument1] [argument2]

To see a list of available commands, simply type eecli at the root of your project installation:, (*6)

$ eecli

For detailed information on a specific command, use the help command:, (*7)

$ eecli help <command>

To generate a new config file, use the init command:, (*8)

$ eecli init

Documentation

For more details on installation, configuration and a command reference, see the Wiki., (*9)

Requirements

  • PHP 5.3+
  • ExpressionEngine 2.5 - 2.10 (Does not work with ExpressionEngine 3).

Contributing

See CONTRIBUTING for more information., (*10)

License

eecli is released under the MIT License. See the bundled LICENSE file., (*11)

The Versions