function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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