1
0
Fork 0

Add more docs to config command

pull/3758/head
Jordi Boggiano 2015-02-17 20:06:02 +00:00
parent efcd1e4247
commit 0e977e3fde
1 changed files with 18 additions and 1 deletions

View File

@ -65,6 +65,15 @@ class ConfigCommand extends Command
This command allows you to edit some basic composer settings in either the
local composer.json file or the global config.json file.
To set a config setting:
<comment>%command.full_name% bin-dir bin/</comment>
To read a config setting:
<comment>%command.full_name% bin-dir</comment>
Outputs: <info>bin</info>
To edit the global config.json file:
<comment>%command.full_name% --global</comment>
@ -73,7 +82,15 @@ To add a repository:
<comment>%command.full_name% repositories.foo vcs http://bar.com</comment>
You can add a repository to the global config.json file by passing in the
To remove a repository (repo is a short alias for repositories):
<comment>%command.full_name% --unset repo.foo</comment>
To disable packagist:
<comment>%command.full_name% repo.packagist false</comment>
You can alter repositories in the global config.json file by passing in the
<info>--global</info> option.
To edit the file in an external editor: