1. To check sfdx CLI configure properly or not
2. Create an alias DevHub by using -a and make this the default org using -d
> sfdx force:auth:web:login -d -a DevHub
> sfdx force:project:create -n TestDemo
4. Move to project directory
5. Create a scratch org with the alias DemoOrg
> sfdx force:org:create -f config/project-scratch-def.json -a DemoOrg
6. View the configuration data for the scratch org.
> sfdx force:org:display -u DemoOrg
7. Open the new scratch org
> sfdx force:org:open -u DemoOrg
> sfdx force:user:password:generate -u DemoOrg
9. “MetaDataDemo” is the unzip folder name. Convert to DX code.
> sfdx force:mdapi:convert -r MetaDataDemo/
10. Delete the scratch org “DemoOrg”
> sfdx force:org:delete -u DemoOrg
11. Create a new scratch org MetaOrg from configuration file.
> sfdx force:org:create -f config/project-scratch-def.json -a MetaOrg
12. Push the changes to new org
> sfdx force:source:push -u MetaOrg
13. Pull the changes from org
> sfdx force:source:pull -u MetaOrg
14. Install sfdx plugins for example @salesforce/lwc-dev-server
> sfdx plugins:install @salesforce/lwc-dev-server
16. Update sfdx related plugins