spfx project rename
Renames SharePoint Framework project
Usage
m365 spfx project rename [options]
Options
-n, --newName <newName>New name for the project
--generateNewIdGenerate a new solution ID for the project
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Remarks
Run this command in the folder where the project that you want to rename is located.
This command will update the project name in: package.json, .yo-rc.json, package-solution.json, deploy-azure-storage.json and README.md.
Examples
Renames SharePoint Framework project to contoso
m365 spfx project rename --newName contoso
Renames SharePoint Framework project to contoso with new solution ID
m365 spfx project rename --newName contoso --generateNewId
Response
The command won't return a response on success.