diff --git a/src/Composer/Command/ArchiveCommand.php b/src/Composer/Command/ArchiveCommand.php
index 29858c6fc..d0d9542cb 100644
--- a/src/Composer/Command/ArchiveCommand.php
+++ b/src/Composer/Command/ArchiveCommand.php
@@ -56,6 +56,7 @@ package in the specified version and writes it to the specified directory.
php composer.phar archive [--format=zip] [--dir=/foo] [package [version]]
+Read more at https://getcomposer.org/doc/03-cli.md#archive
EOT
)
;
diff --git a/src/Composer/Command/ClearCacheCommand.php b/src/Composer/Command/ClearCacheCommand.php
index 2514f6330..ec51c56d3 100644
--- a/src/Composer/Command/ClearCacheCommand.php
+++ b/src/Composer/Command/ClearCacheCommand.php
@@ -32,6 +32,8 @@ class ClearCacheCommand extends BaseCommand
<<clear-cache deletes all cached packages from composer's
cache directory.
+
+Read more at https://getcomposer.org/doc/03-cli.md#clear-cache-clearcache-
EOT
)
;
diff --git a/src/Composer/Command/ConfigCommand.php b/src/Composer/Command/ConfigCommand.php
index 89ba495cf..71ec9d816 100644
--- a/src/Composer/Command/ConfigCommand.php
+++ b/src/Composer/Command/ConfigCommand.php
@@ -125,6 +125,8 @@ You can always pass more than one option. As an example, if you want to edit the
global config.json file.
%command.full_name% --editor --global
+
+Read more at https://getcomposer.org/doc/03-cli.md#config
EOT
)
;
diff --git a/src/Composer/Command/CreateProjectCommand.php b/src/Composer/Command/CreateProjectCommand.php
index cca5f1871..3702c3595 100644
--- a/src/Composer/Command/CreateProjectCommand.php
+++ b/src/Composer/Command/CreateProjectCommand.php
@@ -104,6 +104,7 @@ controlled code by appending the '--prefer-source' flag.
To install a package from another repository than the default one you
can pass the '--repository=https://myrepository.org' flag.
+Read more at https://getcomposer.org/doc/03-cli.md#create-project
EOT
)
;
diff --git a/src/Composer/Command/DependsCommand.php b/src/Composer/Command/DependsCommand.php
index acbc89a70..d6adec083 100644
--- a/src/Composer/Command/DependsCommand.php
+++ b/src/Composer/Command/DependsCommand.php
@@ -37,6 +37,7 @@ Displays detailed information about where a package is referenced.
php composer.phar depends composer/composer
+Read more at https://getcomposer.org/doc/03-cli.md#depends-why-
EOT
)
;
diff --git a/src/Composer/Command/DiagnoseCommand.php b/src/Composer/Command/DiagnoseCommand.php
index 3c4c3bb32..19ed81392 100644
--- a/src/Composer/Command/DiagnoseCommand.php
+++ b/src/Composer/Command/DiagnoseCommand.php
@@ -55,6 +55,7 @@ The diagnose command checks common errors to help debugging problem
The process exit code will be 1 in case of warnings and 2 for errors.
+Read more at https://getcomposer.org/doc/03-cli.md#diagnose
EOT
)
;
diff --git a/src/Composer/Command/DumpAutoloadCommand.php b/src/Composer/Command/DumpAutoloadCommand.php
index 55a2c5f16..3add15166 100644
--- a/src/Composer/Command/DumpAutoloadCommand.php
+++ b/src/Composer/Command/DumpAutoloadCommand.php
@@ -39,6 +39,8 @@ class DumpAutoloadCommand extends BaseCommand
->setHelp(
<<php composer.phar dump-autoload
+
+Read more at https://getcomposer.org/doc/03-cli.md#dump-autoload-dumpautoload-
EOT
)
;
diff --git a/src/Composer/Command/ExecCommand.php b/src/Composer/Command/ExecCommand.php
index f07bc9d28..c9184c707 100644
--- a/src/Composer/Command/ExecCommand.php
+++ b/src/Composer/Command/ExecCommand.php
@@ -36,6 +36,13 @@ class ExecCommand extends BaseCommand
'Arguments to pass to the binary. Use -- to separate from composer arguments'
),
))
+ ->setHelp(
+ <</.config/composer
Note: This path may vary depending on customizations to bin-dir in
composer.json or the environmental variable COMPOSER_BIN_DIR.
+Read more at https://getcomposer.org/doc/03-cli.md#global
EOT
)
;
diff --git a/src/Composer/Command/HomeCommand.php b/src/Composer/Command/HomeCommand.php
index a2f0756a1..b7d907066 100644
--- a/src/Composer/Command/HomeCommand.php
+++ b/src/Composer/Command/HomeCommand.php
@@ -49,6 +49,8 @@ homepage in your default browser.
To open the homepage by default, use -H or --homepage.
To show instead of open the repository or homepage URL, use -s or --show.
+
+Read more at https://getcomposer.org/doc/03-cli.md#browse-home
EOT
);
}
diff --git a/src/Composer/Command/InitCommand.php b/src/Composer/Command/InitCommand.php
index ecc3d3238..66a56f978 100644
--- a/src/Composer/Command/InitCommand.php
+++ b/src/Composer/Command/InitCommand.php
@@ -72,6 +72,7 @@ in the current directory.
php composer.phar init
+Read more at https://getcomposer.org/doc/03-cli.md#init
EOT
)
;
diff --git a/src/Composer/Command/InstallCommand.php b/src/Composer/Command/InstallCommand.php
index cc590d8c9..32fb1bdc6 100644
--- a/src/Composer/Command/InstallCommand.php
+++ b/src/Composer/Command/InstallCommand.php
@@ -61,6 +61,7 @@ exist it will look for composer.json and do the same.
php composer.phar install
+Read more at https://getcomposer.org/doc/03-cli.md#install-i
EOT
)
;
diff --git a/src/Composer/Command/LicensesCommand.php b/src/Composer/Command/LicensesCommand.php
index 9dec45e1b..b3c30d63b 100644
--- a/src/Composer/Command/LicensesCommand.php
+++ b/src/Composer/Command/LicensesCommand.php
@@ -41,6 +41,7 @@ class LicensesCommand extends BaseCommand
The license command displays detailed information about the licenses of
the installed dependencies.
+Read more at https://getcomposer.org/doc/03-cli.md#licenses
EOT
)
;
diff --git a/src/Composer/Command/OutdatedCommand.php b/src/Composer/Command/OutdatedCommand.php
index 79409c58f..ae26a7487 100644
--- a/src/Composer/Command/OutdatedCommand.php
+++ b/src/Composer/Command/OutdatedCommand.php
@@ -50,7 +50,7 @@ The color coding (or signage if you have ANSI colors disabled) for dependency ve
may involve work.
- red (!): Dependency has a new version that is semver-compatible and you should upgrade it.
-
+Read more at https://getcomposer.org/doc/03-cli.md#outdated
EOT
)
;
diff --git a/src/Composer/Command/ProhibitsCommand.php b/src/Composer/Command/ProhibitsCommand.php
index edf6729ab..9e5575c74 100644
--- a/src/Composer/Command/ProhibitsCommand.php
+++ b/src/Composer/Command/ProhibitsCommand.php
@@ -37,6 +37,7 @@ Displays detailed information about why a package cannot be installed.
php composer.phar prohibits composer/composer
+Read more at https://getcomposer.org/doc/03-cli.md#prohibits-why-not-
EOT
)
;
diff --git a/src/Composer/Command/RemoveCommand.php b/src/Composer/Command/RemoveCommand.php
index 27be1a0ca..e4407d4cb 100644
--- a/src/Composer/Command/RemoveCommand.php
+++ b/src/Composer/Command/RemoveCommand.php
@@ -56,6 +56,7 @@ list of installed packages
php composer.phar remove
+Read more at https://getcomposer.org/doc/03-cli.md#remove
EOT
)
;
diff --git a/src/Composer/Command/RequireCommand.php b/src/Composer/Command/RequireCommand.php
index b347de094..4cad91023 100644
--- a/src/Composer/Command/RequireCommand.php
+++ b/src/Composer/Command/RequireCommand.php
@@ -73,6 +73,7 @@ If you do not specify a version constraint, composer will choose a suitable one
If you do not want to install the new dependencies immediately you can call it with --no-update
+Read more at https://getcomposer.org/doc/03-cli.md#require
EOT
)
;
diff --git a/src/Composer/Command/RunScriptCommand.php b/src/Composer/Command/RunScriptCommand.php
index 7997dfb37..a110cc3d6 100644
--- a/src/Composer/Command/RunScriptCommand.php
+++ b/src/Composer/Command/RunScriptCommand.php
@@ -63,6 +63,8 @@ class RunScriptCommand extends BaseCommand
The run-script command runs scripts defined in composer.json:
php composer.phar run-script post-update-cmd
+
+Read more at https://getcomposer.org/doc/03-cli.md#run-script
EOT
)
;
diff --git a/src/Composer/Command/ScriptAliasCommand.php b/src/Composer/Command/ScriptAliasCommand.php
index 1aba0b074..455f7420c 100644
--- a/src/Composer/Command/ScriptAliasCommand.php
+++ b/src/Composer/Command/ScriptAliasCommand.php
@@ -48,6 +48,8 @@ class ScriptAliasCommand extends BaseCommand
The run-script command runs scripts defined in composer.json:
php composer.phar run-script post-update-cmd
+
+Read more at https://getcomposer.org/doc/03-cli.md#run-script
EOT
)
;
diff --git a/src/Composer/Command/SearchCommand.php b/src/Composer/Command/SearchCommand.php
index ed180e84c..54aa4dcea 100644
--- a/src/Composer/Command/SearchCommand.php
+++ b/src/Composer/Command/SearchCommand.php
@@ -49,6 +49,7 @@ class SearchCommand extends BaseCommand
The search command searches for packages by its name
php composer.phar search symfony composer
+Read more at https://getcomposer.org/doc/03-cli.md#search
EOT
)
;
diff --git a/src/Composer/Command/SelfUpdateCommand.php b/src/Composer/Command/SelfUpdateCommand.php
index 243755963..78b27460e 100644
--- a/src/Composer/Command/SelfUpdateCommand.php
+++ b/src/Composer/Command/SelfUpdateCommand.php
@@ -60,6 +60,7 @@ versions of composer and if found, installs the latest.
php composer.phar self-update
+Read more at https://getcomposer.org/doc/03-cli.md#self-update-selfupdate-
EOT
)
;
diff --git a/src/Composer/Command/ShowCommand.php b/src/Composer/Command/ShowCommand.php
index cc0fe0154..e9061743f 100644
--- a/src/Composer/Command/ShowCommand.php
+++ b/src/Composer/Command/ShowCommand.php
@@ -85,6 +85,7 @@ class ShowCommand extends BaseCommand
The show command displays detailed information about a package, or
lists all packages available.
+Read more at https://getcomposer.org/doc/03-cli.md#show
EOT
)
;
diff --git a/src/Composer/Command/StatusCommand.php b/src/Composer/Command/StatusCommand.php
index 3e46b7fa0..cd153fc58 100644
--- a/src/Composer/Command/StatusCommand.php
+++ b/src/Composer/Command/StatusCommand.php
@@ -52,6 +52,7 @@ class StatusCommand extends BaseCommand
The status command displays a list of dependencies that have
been modified locally.
+Read more at https://getcomposer.org/doc/03-cli.md#status
EOT
)
;
diff --git a/src/Composer/Command/SuggestsCommand.php b/src/Composer/Command/SuggestsCommand.php
index 225725e12..a200f8f69 100644
--- a/src/Composer/Command/SuggestsCommand.php
+++ b/src/Composer/Command/SuggestsCommand.php
@@ -38,6 +38,7 @@ The %command.name% command shows a sorted list of suggested package
Enabling -v implies --by-package --by-suggestion, showing both lists.
+Read more at https://getcomposer.org/doc/03-cli.md#suggests
EOT
)
;
diff --git a/src/Composer/Command/UpdateCommand.php b/src/Composer/Command/UpdateCommand.php
index 34420b747..e68c265c0 100644
--- a/src/Composer/Command/UpdateCommand.php
+++ b/src/Composer/Command/UpdateCommand.php
@@ -81,6 +81,7 @@ from a specific vendor:
To select packages names interactively with auto-completion use -i.
+Read more at https://getcomposer.org/doc/03-cli.md#update-u
EOT
)
;
diff --git a/src/Composer/Command/ValidateCommand.php b/src/Composer/Command/ValidateCommand.php
index 52023e528..5aba74adf 100644
--- a/src/Composer/Command/ValidateCommand.php
+++ b/src/Composer/Command/ValidateCommand.php
@@ -55,6 +55,7 @@ Exit codes in case of errors are:
2 validation error(s)
3 file unreadable or missing
+Read more at https://getcomposer.org/doc/03-cli.md#validate
EOT
);
}