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
BHASKAR GANGULYBHASKAR GANGULY 

This command is required to run from within an SFDX project.

Hi All,
While running the below CLI command
sfdx force:source:deploy -x C:\Users\COG12537\Desktop\sfdx\sfdx2\manifest\package.xml -u myorg

i am getting the below error.
 This command is required to run from within an SFDX project.

However this is a dx project.Please help me understnd the issue.

Thanks,
Bhaskar
Raj VakatiRaj Vakati

In general, a Salesforce DX Project is a new local file structure that collects your org's metadata (code and config), org templates, sample data, and tests. The project root is often the repository root of a version control system (VCS) as well.
 
sfdx-project-dir
└─ sfdx-package-dir
   └─ main
      └─ default
         └─ objects
            └─ MyObject__c
               ├─ fields
               └─ MyObject__c.object-meta.xml

Run your command  from the sfdx-project-dir folder