@@ -27,11 +27,17 @@ class ConfigurationCommand(Command):
27
27
28
28
- list: List the active configuration (or from the file specified)
29
29
- edit: Edit the configuration file in an editor
30
- - get: Get the value associated with name
31
- - set: Set the name =value
32
- - unset: Unset the value associated with name
30
+ - get: Get the value associated with command.option
31
+ - set: Set the command.option =value
32
+ - unset: Unset the value associated with command.option
33
33
- debug: List the configuration files and values defined under them
34
34
35
+ Configuration keys should be dot separated command and option name,
36
+ with the special prefix "global" affecting any command. For example,
37
+ "pip config set global.index-url https://example.org/" would configure
38
+ the index url for all commands, but "pip config set download.timeout 10"
39
+ would configure a 10 second timeout only for "pip download" commands.
40
+
35
41
If none of --user, --global and --site are passed, a virtual
36
42
environment configuration file is used if one is active and the file
37
43
exists. Otherwise, all modifications happen to the user file by
@@ -43,9 +49,9 @@ class ConfigurationCommand(Command):
43
49
%prog [<file-option>] list
44
50
%prog [<file-option>] [--editor <editor-path>] edit
45
51
46
- %prog [<file-option>] get name
47
- %prog [<file-option>] set name value
48
- %prog [<file-option>] unset name
52
+ %prog [<file-option>] get command.option
53
+ %prog [<file-option>] set command.option value
54
+ %prog [<file-option>] unset command.option
49
55
%prog [<file-option>] debug
50
56
"""
51
57
0 commit comments