"SFDX: Deploy Source to Org" function missing

2.1k Views Asked by At

Hello I have created a LWC project in VS Code but the "SFDX: Deploy Source to Org" option is missing when I Right-click the default folder under force-app/main.

I have authorized the org and set a default scratch org.

Please help.

enter image description here

1

There are 1 best solutions below

2
On

For scratch orgs it's more "natural" to push and pull the changes, let SFDX figure out what changed on your system / what changed server-side (new field, new report? new object? good luck spelling it all out in package.xml, life is too short for it). The team behind VSCode sfdx plugin made conscious decision to hide these options.

Try with sfdx force:source:push. If you need single file there's still source-ish deploy command (will warn you if you're overwriting something changed on server / by another dev and you can force deploy if you want).

https://developer.salesforce.com/tools/vscode/en/user-guide/development-models

https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_develop_any_org.htm

The deploy-retrieve are old school metadata api commands