[SalesForce] SFDX: Deploy Source to Org: Very slow

I am using command:

SFDX: Deploy Source to Org

To deploy Apex code to a sandbox environment.

But often it is taking a very long time (multiple minutes) to respond/complete.

QUESTION

How can I get quicker feedback/response from Salesforce?

Best Answer

How can I get quicker feedback/response from Salesforce?

You can't; it takes as long as it takes. The force:source:deploy command can't determine a minimal deployment package to generate, so it deploys everything. Making smaller packages and/or using 2GP (second generation packaging) would greatly improve performance.

Related Topic