Skip to content

Instantly share code, notes, and snippets.

@douglascayers
Last active April 28, 2019 06:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save douglascayers/77b1076ae01a78af3a89fb23748905b6 to your computer and use it in GitHub Desktop.
Simple Salesforce DX project configuration file to activate Salesforce Extensions for Visual Studio Code.
{
"packageDirectories": [
{
"path": "force-app",
"default": true
}
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "45.0"
}
@douglascayers
Copy link
Author

douglascayers commented Feb 17, 2019

Remember to increment the sourceApiVersion with each Salesforce major release.

When working with a source-tracked org, such as a scratch org, then packageDirectories should list your source folders for pushing and pulling metadata. Commonly, this folder is named force-app.

When working with a non-source-tracked org, such as a sandbox or production org, then an entry in packageDirectories should refer to the relative path to your folder of metadata in the Metadata API format. Commonly, this folder is named src instead of force-app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment