Do not directly construct instances of this class -- use {@link ConfigAggregator.resolve} instead.
Get the resolved config object from the local, global and environment config instances.
Get all resolved config property keys, values, locations, and paths.
Get the config properties that are environment variables.
Get the global config instance.
Get a resolved config property.
The key of the property.
Get the local project config instance.
Gets a resolved config property location.
For example, getLocation('logLevel') will return:
LOCATIONS.GLOBAL if resolved to an environment variable.LOCATIONS.LOCAL if resolved to local project config.LOCATIONS.ENVIRONMENT if resolved to the global config.The key of the property.
Get a resolved file path or environment variable name of the property.
For example, getPath('logLevel') will return:
$SFDX_LOG_LEVEL if resolved to an environment variable../.sfdx/sfdx-config.json if resolved to the local config.~/.sfdx/sfdx-config.json if resolved to the global config.undefined, if not resolved.Note: that the path returned may be the absolute path instead of
relative paths such as ./ and ~/.
The key of the property.
Get a resolved config property.
The key of the property.
Re-read all property configurations from disk.
Asynchronously constructs and initializes a new instance of a concrete subclass with the optional options.
An options object providing initialization params to the async constructor.
Aggregate global and local project config files, as well as environment variables for
sfdx-config.json. The resolution happens in the following bottom-up order:SFDX_LOG_LEVEL)<workspace-root>/.sfdx/sfdx-config.json)$HOME/.sfdx/sfdx-config.json)Use ConfigAggregator.create to instantiate the aggregator.
const aggregator = await ConfigAggregator.create(); console.log(aggregator.getPropertyValue('defaultusername'));