Returns the project path.
The project config is resolved from local and global SfdxProjectJson, ConfigAggregator, and a set of defaults. It is recommended to use this when reading values from SfdxProjectJson.
A resolved config object that contains a bunch of different properties, including some 3rd party custom properties.
Get the sfdx-project.json config. The global sfdx-project.json is used for user defaults that are not checked in to the project specific file.
Note: When reading values from SfdxProjectJson, it is recommended to use {@link Project.resolveProjectConfig} instead.
True to get the global project file, otherwise the local project config.
Get a Project from a given path or from the working directory.
The path of the project.
The resolved project.
Performs an upward directory search for an sfdx project file.
The absolute path to the project.
Represents an SFDX project directory. This directory contains a SfdxProjectJson config file as well as a hidden .sfdx folder that contains all the other local project config files.
const project = await SfdxProject.resolve(); const projectJson = await project.resolveProjectConfig(); console.log(projectJson.sfdcLoginUrl);