lci / console
An extendable Composer driven CLI console for MODX
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Installs: 539
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 8
Forks: 0
Open Issues: 0
pkg:composer/lci/console
Requires
- php: >=7.0.0
 - symfony/console: >=3.4
 - vlucas/phpdotenv: ^2.5
 
Requires (Dev)
- phpunit/phpunit: ^6
 
Suggests
- lci/orchestrator: Easily create composer packages for MODX using Blend
 
README
An extendable Composer driven CLI console for MODX. Creating a single point for running CLI commands.
Install steps
If you have not install composer do so now before proceeding
Option one behind the public root
Not recommended for MODX Cloud as only the www directory gets copied for snapshots and backups
- Example SSH into MODX Cloud in the home/ directory
 mkdir Consoleor name that you prefer- Then cd into the directory
 
Option two in traditional MODX components path
- Go to MODX/core/components
 mkdir console- Then cd into the directory
 
Remain steps are the same in the created directory
- Run 
composer require lci/console 
Config for Packages
As of 1.1.3, dependant packages classes will be stored in MODX/core/config/lci_console*.
Custom .env
By default if you want an .env file place it in the /core directory.
Optional set your own custom path, via command line. Example within /core $ php vendor/bin/console  console:env-dir /var/path/
Note on MODXCloud you need to provide the realpath not the symlink path if you set a custom path. Like /paas/cXXXX/www/core/path/.env