I'm trying to deploy my objects from VS Code to Prod. All my object is in Source format. But when I try to deploy, I get below error :
sf:INVALID_OPERATION: INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations
And if I give RunLocalTest command it gives below error:
ERROR running force:source:deploy: ERROR: This command doesn't support wildcards. Remove the wildcard, and run the command again. See --help for examples.
Here is my command which I'm trying to run for Prod deployment
sfdx force:source:deploy --sourcepath /Users/salesforceDeveloper/Desktop/SFDC Project/Prod Migration/force-app/main/default/objects -l RunLocalTests -u TargetEnv
Also is there any command using which I can only validate my component in Prod?
Thanks