diff --git a/doc/articles/scripts.md b/doc/articles/scripts.md index 4e8d3b7d1..06e7c784d 100644 --- a/doc/articles/scripts.md +++ b/doc/articles/scripts.md @@ -115,3 +115,11 @@ PHP callback. This `Event` object has getters for other contextual objects: - `getName()`: returns the name of the event being fired as a string - `getIO()`: returns the current input/output stream which implements `Composer\IO\IOInterface` for writing to the console + +## Running scripts manually + +If you would like to run the scripts for an event manually, the syntax is: + + $ composer run-script [--dev] [--no-dev] script + +For example `composer run-script post-install-cmd` will run any **post-install-cmd** scripts that have been defined.