From 4c165f971879b991c4e73879ca3d204e98b45c56 Mon Sep 17 00:00:00 2001 From: Victor Isadov Date: Wed, 16 Aug 2017 16:08:05 +0300 Subject: [PATCH 1/4] Update 03-cli.md --- doc/03-cli.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/03-cli.md b/doc/03-cli.md index 4f7d3c061..fdfbee13b 100644 --- a/doc/03-cli.md +++ b/doc/03-cli.md @@ -397,7 +397,7 @@ This implies `--by-package --by-suggestion`, showing both lists. * **--by-suggestion:** Groups output by suggested package. * **--no-dev:** Excludes suggestions from `require-dev` packages. -## depends +## depends (why) The `depends` command tells you which other packages depend on a certain package. As with installation `require-dev` relationships are only considered @@ -432,7 +432,7 @@ psr/log 1.0.0 Common interface for logging libraries * **--recursive (-r):** Recursively resolves up to the root package. * **--tree (-t):** Prints the results as a nested tree, implies -r. -## prohibits +## prohibits (why-not) The `prohibits` command tells you which packages are blocking a given package from being installed. Specify a version constraint to verify whether upgrades From 7968016d26dd6260ee2b7abb3e74e40f71c76100 Mon Sep 17 00:00:00 2001 From: Victor Isadov Date: Wed, 16 Aug 2017 16:11:04 +0300 Subject: [PATCH 2/4] Update 03-cli.md --- doc/03-cli.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/03-cli.md b/doc/03-cli.md index fdfbee13b..7a136852a 100644 --- a/doc/03-cli.md +++ b/doc/03-cli.md @@ -501,7 +501,7 @@ vendor/seld/jsonlint: M README.mdown ``` -## self-update +## self-update (selfupdate) To update Composer itself to the latest version, just run the `self-update` command. It will replace your `composer.phar` with the latest version. @@ -656,7 +656,7 @@ By default the command checks for the packages on packagist.org. requirements and force the installation even if the local machine does not fulfill these. -## dump-autoload +## dump-autoload (dumpautoload) If you need to update the autoloader because of new classes in a classmap package for example, you can use "dump-autoload" to do that without having to From 884a605bbe44933bc7caa754ab3bf89881712209 Mon Sep 17 00:00:00 2001 From: Victor Isadov Date: Wed, 16 Aug 2017 16:11:41 +0300 Subject: [PATCH 3/4] Update 03-cli.md --- doc/03-cli.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/03-cli.md b/doc/03-cli.md index 7a136852a..0c129801c 100644 --- a/doc/03-cli.md +++ b/doc/03-cli.md @@ -679,7 +679,7 @@ performance. * **--apcu:** Use APCu to cache found/not-found classes. * **--no-dev:** Disables autoload-dev rules. -## clear-cache +## clear-cache (clearcache) Deletes all content from Composer's cache directories. From 4a4bd4a6a2d09bc09bee874a152d2a44b92ae4ed Mon Sep 17 00:00:00 2001 From: Victor Isadov Date: Wed, 16 Aug 2017 16:14:29 +0300 Subject: [PATCH 4/4] Note for short names --- doc/03-cli.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/03-cli.md b/doc/03-cli.md index 0c129801c..ae1e42a6f 100644 --- a/doc/03-cli.md +++ b/doc/03-cli.md @@ -7,6 +7,12 @@ To get help from the command-line, simply call `composer` or `composer list` to see the complete list of commands, then `--help` combined with any of those can give you more information. +As Composer uses [symfony/console](https://github.com/symfony/console) you can call commands by short name if it's not ambiguous. +```sh +composer dump +``` +calls `composer dump-autoload`. + ## Global Options The following options are available with every command: