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);
Returns the project path.
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.
True to get the global project file, otherwise the local project config.
Performs an upward directory search for an sfdx project file. Returns the absolute path to the project.