+ Start a Discussion
Peter BölkePeter Bölke 

Error on single Class deployment via CLI

Hello,

i tried 
sfdx force:source:deploy -m ApexClass:Whatever.cls -c -l RunAllTestsInOrg
i get this error:
 
ERROR running force:source:deploy:  The ApexClass named Whatever.cls was not found in the workspace.

Whats wrong? It works fine when i use a package.xml.

thanks
Peter
 
SarvaniSarvani
Hi Peter,

Try with below command:
sfdx force:source:deploy -m ApexClass:Whatever  -l  RunAllTestsInOrg -c

Hope this helps! 

Thanks