4696d243d00d913dd3478fe8252c6721254c8f6f
[AGL/documentation.git] / docs / ATTIC / 3_Developer_Guides / 4_X(cross)_Development_System:_User's_Guide / 4_X(cross)_Development_System:_ Internals / 3.4.4.4_xds-cli / 3.4.4.4.2_Config.md
1 <!-- WARNING: This file is generated by fetch_docs.js using /home/boron/Documents/AGL/docs-webtemplate/site/_data/tocs/devguides/master/xds-docs-guides-devguides-book.yml -->
2
3 # Configuration
4
5 `xds-cli` configuration is defined either by environment variables or by
6 setting command line options.
7
8 Configuration through environment variables may also be defined in a file that
9 will be sourced by `xds-cli` on start-up.
10
11 Use `--config|-c` option or set `XDS_CONFIG` environment variable to specify the config file to use.
12
13 So configuration is driven either by environment variables or by command line
14 options or using a config file knowing that the following priority order is used:
15
16 1. use option value (for example use project ID set by `--id` option),
17 1. else use variable `XDS_xxx` (for example `XDS_PROJECT_ID` variable) when a
18    config file is specified with `--config|-c` option,
19 1. else use `XDS_xxx` (for example `XDS_PROJECT_ID`) environment variable
20
21 <!-- section-note -->
22 **Note:**
23
24 All parameters after a double dash (--) are considered as the command
25 to execute on xds-server.
26 <!-- end-section-note -->
27
28 ## Global Options / Configuration variables
29
30 Following is the list of global options across all sub-commands.
31
32 __`--config|-c` option or `XDS_CONFIG` env variable__
33
34 Env config file to source on startup
35
36 __`--log|-l` option or `XDS_LOGLEVEL` env variable__
37
38 Logging level, supported levels are:
39
40 - panic
41 - fatal
42 - error
43 - warn
44 - info
45 - debug
46
47 Default level is "error".
48
49 **`--rpath` option or `XDS_PATH` env variable**
50
51 Relative path into project
52
53 **`timestamp|-ts` option or `XDS_TIMESTAMP` env variable**
54
55 Prefix output with timestamp
56
57 **`url` option or `XDS_AGENT_URL` env variable**
58
59 Local XDS agent url (default: "localhost:8800")