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
Parteek Goyal 3Parteek Goyal 3 

How to push source code to scratch orgs in salesforce dx

Hi All,

I need help in push source code to scratch orgs in salesforce dx.

Try  Below:
Sfdx force:source:push
Before Push your source code to scrach org.You should  to Authorize an Org

 Below link Helps You:

IF it helps you than please mark it as a solution 
Khan AnasKhan Anas (Salesforce Developers) 
Hi Prateek,

Greetings to you!

To push changed source to your default scratch org:
sfdx force:source:push

To push changed source to a scratch org that’s not the default, you can indicate it by its username or alias:
sfdx force:source:push --targetusername
sfdx force:source:push -u
sfdx force:source:push -u MyGroovyScratchOrg

Please refer to the below links which might help you further with the above requirement.

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas