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
Matyas CsabaMatyas Csaba 

SFDX: force misssing

Hello Helpers

I am trying to use VS Code with one of  my org (NOT a scratch org!) and  I have problem using some of the CLI  commands.  It seems that all force  namespace is missign because when I  type in te command bar the SFDX: force  I got "No commands matching"

What I am interested in the first step to us is to add to my VS project an existing Apex class form my org. 
I do not want to  add it  manually  to package.xml
and retreieve it
I want to use the following CLI command
sfdx force:source:retrieve --metadata ApexClass:YourApexClass.

error with SFDX: force   namespace

 
Best Answer chosen by Matyas Csaba
Matyas CsabaMatyas Csaba
I  found the solution

The command  should be used from a Visual Source Code  TERMINAL 

PS C:\Users\myUserDiretory\WORK\VSCode_projects\Jive_BigOneProject_fromManifest> sfdx force:source:retrieve --metadata ApexClass:Test_Factory
=== Retrieved SourceFULL NAME     TYPE       PROJECT PATH
────────────  ─────────  ────────────────────────────────────────────────────────
Test_Factory  ApexClass  force-app\main\default\classes\Test_Factory.cls-meta.xml
Test_Factory  ApexClass  force-app\main\default\classes\Test_Factory.cls
PS C:\Users\cmatyaspeter\WORK\VSCode_projects\Jive_BigOneProject_fromManifest>