function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Frederick H LaneFrederick H Lane 

Visual Studio Code - What is manifest

When I,m following tutorials for creating Lightning Components, some lessons create projects in manifest via the CLI or Ctrl+cmd+P  SFDX: Open Project in Manifest.
What is this and why not just open a normal project?
Alain CabonAlain Cabon
@Frederick H Lane

manifest means the folder that contents the file package.xml

Create Project is an empty project with only the folders and you need to retrieve the source code with extra commands
  1. Choose an existing folder for your project on disk 
  2. CTRL + Shift + P : SFDX: Authorize an Org
  3. Enter an alias of this org ( here TESTING2 )
  4. Enter your credentials ( user / password )
  5. Terminal (tab):  type the next command lines directly
  6. sfdx force:source:retrieve -m ApexClass
  7. sfdx force:source:retrieve -m AuraDefinitionBundle

Create Project using Manifest => "manifest" folder contains a default package.xml, contains all the declaration of the  metadata that you want to retrieve. 
  1. Choose an existing folder for your project on disk
  2. CTRL + Shift + P : SFDX: Authorize an Org
  3. Enter an alias of this org ( here TESTING2 )
  4. Enter your credentials  ( user / password )
  5. Right click on package.xml
  6. SFDX: Retrieve Source in Manifest from Org

package.xml (right click) 

User-added image


If you want to manage easily the content of package.xml (created with the minimal sufficient types by default), there is this great plugin:

Salesforce Package.xml Generator Extension for VS Code   Version1.0.1
Released on: 08/05/2019     Last updated 16/05/2019 
Publisher Vignaesh Ram A

https://marketplace.visualstudio.com/items?itemName=VignaeshRamA.sfdx-package-xml-generator