angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ng rename command

Open mgechev opened this issue 3 years ago • 6 comments

🚀 Feature request

Command (mark with an x)

Create a new command called ng rename which renames a project.

Description

Renaming a project currently requires manually updating configuration and file names. This is error prone - can break our CLI workspace.

Describe the solution you'd like

To simplify the process, we can consider implementing an ng rename command:

ng rename [project-name] [new-project-name]

Describe alternatives you've considered

Documenting the approach is an alternative, but looks like folks are generally interested in an automated way to achieve this (see https://github.com/angular/angular/issues/39909#issuecomment-425163941).

mgechev avatar Mar 22 '22 16:03 mgechev

That would be a great feature!

steven-fernandez avatar Jun 14 '22 21:06 steven-fernandez

Yeah We need this feature !

MohamedMatrab avatar Jul 01 '24 12:07 MohamedMatrab

Nice idea!

DevHanza avatar Oct 08 '24 14:10 DevHanza

Besides renaming projects, it should also be possible to rename components etc. See https://github.com/angular/angular-cli/issues/900 (which has been closed due to inactivity) this stackoverflow question https://stackoverflow.com/questions/46411036/how-to-rename-a-component-in-angular-cli, and these featurerequests: VScode https://github.com/angular/vscode-ng-language-service/issues/815 Jetbrains https://youtrack.jetbrains.com/issue/WEB-48390/Renaming-Angular-components-should-rename-directories-and-related-files-and-vise-verse

koesper avatar Jan 29 '25 15:01 koesper

Can I work on this? is it still valid? cc @alan-agius4

gioboa avatar Feb 03 '25 23:02 gioboa

Is this issue only about renaming the project, or also components?

pvsplunter avatar Feb 04 '25 16:02 pvsplunter