mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Finalize and bring up to speed the remove command, refs #2479
This commit is contained in:
parent
70d9cad549
commit
e3f32a79f3
2 changed files with 46 additions and 31 deletions
|
@ -163,6 +163,7 @@ php composer.phar require vendor/package:2.* vendor/package2:dev-master
|
|||
* **--no-update:** Disables the automatic update of the dependencies.
|
||||
* **--no-progress:** Removes the progress display that can mess with some
|
||||
terminals or scripts which don't handle backspace characters.
|
||||
* **--update-no-dev** Run the dependency update with the --no-dev option.
|
||||
* **--update-with-dependencies** Also update dependencies of the newly
|
||||
required packages.
|
||||
|
||||
|
@ -171,18 +172,20 @@ php composer.phar require vendor/package:2.* vendor/package2:dev-master
|
|||
The `remove` command removes packages from the `composer.json` file from
|
||||
the current directory.
|
||||
|
||||
$ php composer.phar remove <vendor/package>
|
||||
```sh
|
||||
php composer.phar remove vendor/package vendor/package2
|
||||
```
|
||||
|
||||
After removing the requirements, the modified requirements will be
|
||||
uninstalled.
|
||||
|
||||
### Options
|
||||
* **--dry-run:** If you want to run through an uninstallation without actually
|
||||
uninstalling a package, you can use `--dry-run`. This will simulate the
|
||||
uninstallation and show you what would happen.
|
||||
* **--dev:** Add packages to `require-dev`.
|
||||
* **--no-update:** Only remove the package from the composer.json file, but
|
||||
won't remove the files or update the composer.lock
|
||||
* **--dev:** Remove packages from `require-dev`.
|
||||
* **--no-update:** Disables the automatic update of the dependencies.
|
||||
* **--no-progress:** Removes the progress display that can mess with some
|
||||
terminals or scripts which don't handle backspace characters.
|
||||
* **--update-no-dev** Run the dependency update with the --no-dev option.
|
||||
* **--update-with-dependencies** Also update dependencies of the removed packages.
|
||||
|
||||
## global
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue