Deploy to production
Deploy to Salesforce Production without Tests
By default when deploying items to Production you would run local tests (all tests except for Unlocked/Managed Packages)
By default when deploying items to Production you would run local tests (all tests except for Unlocked/Managed Packages)
You cannot use the NoTestRun flag as it will result in an error
“testLevel of NoTestRun cannot be used in production organizations”
Use any of the below commands to deploy to Prod without running Unit Tests! This will work only if you do not have Apex Classes/Triggers to be deployed
bash
sfdx force:source:deploy [...] --testlevel RunSpecifiedTests --runtests "someRandomString"
sf project deploy start [...] --test-level RunSpecifiedTests --tests "someRandomString"

