MODX Shell

Using third party commands/libraries

While MODX Shell is a standalone "application", it has been thought to be extended/enhanced with additional commands.
To do so, you somehow will have to build your own "Shell" by :

  1. Build your composer.json
{
    "repositories": [{
         "type": "vcs",
         "url": "https://github.com/meltingmedia/MODX-Shell"
     },{
         "type": "vcs",
         "url": "https://github.com/meltingmedia/shell-extra-sample"
     }],
    "require": {
        "MODX/Shell": "dev-master",
        "thirdparty/library": "dev-master"
    },
    "scripts": {
        "post-autoload-dump": [
            "ThirdParty\\RegisterCommands::run"
        ]
    },
    "minimum-stability": "dev",
    "config": {
        "preferred-install": "dist",
        "bin-dir": "bin/"
    }
}
  1. Install dependencies composer install --no-dev
  2. Make bin/modx available globally in your $PATH