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
Siri Deva Singh KhalsaSiri Deva Singh Khalsa 

deploy:apex is not a sfdx command

Hi All,

I'm a bit new to this.

I'm coding a visualforce page using Visual Stuido Code and attempting to get it to deploy to my sandbox org.

I have authenticated the org and added 
"salesforcedx-vscode-core.push-or-deploy-on-save.enabled": true
to my project settings.json file.

However when I try to save my constructor class I get the below error. I can't seem to find anyone else having this problem when I search the forums.

Does anyone have guidance?
 User-added image
AnudeepAnudeep (Salesforce Developers) 
I have seen such errors in the past. I uninstalled the VScode application and the issue has resolved itself after a fresh install. The error seems to be because of some settings or preferences that might be changed by mistake. 
Rina DahanRina Dahan
I got the same error "deploy apex is not a sfdx command" on any "Ctrl+s" (even automatic deploy was false) after I installed the VS plugin "SalesforceDX Code Companion", when disabling the plugin the error stopped appearing!