Skip to main content

Interface: LoadClientProfileOptions

Options for loading a client configuration profile.

Properties​

configFileStrict?​

optional configFileStrict?: boolean

If true, will error on unrecognized keys in the TOML file.


configSource?​

optional configSource?: ConfigDataSource

If present, this is used as the configuration source instead of default file locations. This can be a path to the file or the string/byte contents of the file.


disableEnv?​

optional disableEnv?: boolean

If true, environment variable loading and overriding is disabled.


disableFile?​

optional disableFile?: boolean

If true, file loading is disabled. This is only used when configSource is not present.


overrideEnvVars?​

optional overrideEnvVars?: Record<string, string>

A dictionary of environment variables to use for loading and overrides. If not provided, the current process's environment is used.


profile?​

optional profile?: string

The name of the profile to load from the config. Defaults to "default".