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
Teeps54Teeps54 

sf commands not recognised

Hello everyone,

In VSCode, when I try to run the sf project generate manifest command:

sf project generate manifest --source-dir force-app --name myNewManifest

I get the following error message: 

Warning: project generate manifest is not a sf command

I've installed salesforcecli via npm and have updated to the latest version:

@salesforce/cli: Updating CLI... already on version 2.7.11-5a5b1de

I have a Salesforce project (directory with a sfdx-project.json file in it) and, in the terminal, I am in the top level of the directory.

Is there anything in the above info that I am doing incorrectly? Or is this maybe a Salesforce CLI bug?

TIA
Tom

AshwiniAshwini (Salesforce Developers) 
Hi Teeps54,

Can you try using below command:
sfdx force:source:manifest:create --sourcepath force-app --manifestname myNewManifest
You can refer below link which can help you with commands to generate manifest file.
force:source:manifest:create https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_source.htm#cli_reference_force_source_manifest_create:~:text=Type%3A%20filepath-,force%3Asource%3Amanifest%3Acreate,-Create%20a%20project)

If this information helps, please mark the answer as best. Thank you