is there a way to push code from VS code to salesforce Production?

1 Answer 1


Although it is not really recommended, you can do that by simply using deploy to org option in VS code. It will work as a regular deployment and run the tests automatically if required.

Another way to do that is by using SFDX deploy command and run this script if you are using source format or use metadata deploy command.

$ sfdx force:source:deploy -p force-app -u production alias here

  • could this work for Production as well?
    – Ashu
    Commented Apr 29, 2020 at 9:26
  • Yes, it will work.
    – manjit5190
    Commented Apr 29, 2020 at 9:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .