Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Configuration

DocGraf supports configuration via command line arguments, environment variables, and json config file. By default, DocGraf looks for a file named configuration.local.json in the same directory where it is run.

Config Precedence

The following defines the precedence in which config definitions are honored. With the first item overriding any below it.

  1. Command Line
  2. Environment Variables
  3. Config File

For example, if you defined a setting ONLY in the Config file, then the Config file setting will be used.

If you defined a setting in both the Config file AND the Environment variables, then the Environment variable setting will be used.

If you defined a setting using all 3 methods (config file, env, and command line), then the setting provided via the command line will be used.


Table of contents