A Salesforce DX project is a local copy of your artifact, a group of related code and customizations.

salesforce dx useful commands

We use following commands very frequently:

1. login to new org and set as default

sfdx force:auth:web:login -d -a DevHub

2. create new Project

sfdx force:project:create -n Demoproject

3. create new scratch org

sfdx force:org:create -s -f config/project-scratch-def.json -a DemoScratch

4. pull code

sfdx force:source:pull

5. PUSH CODE

sfdx force:source:push

6. OPEN SCRATCH ORG

sfdx force:org:open

7. Generate password of scratch org user

sfdx force:user:password:generate --targetusername

8. See password of scratch org user

sfdx force:user:display -u