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
Karthik Raja MKarthik Raja M 

how to rename lightning component

We can run below query in developer console query editor. It will return all the aura component name in DeveloperName column.

SELECT Id, DeveloperName FROM AuraDefinitionBundle

Now we can edit Developer Name and save it. It will reflect all the place wherever the component is used. If you are using the component in controller and helper, It will reflect there also.
Khan AnasKhan Anas (Salesforce Developers) 
Hi Karthik,

Greetings to you!

Using Developer Console Query Editor to edit Lightning Component name no longer works and the only alternative is to use the resource and use the label to override for admin purposes.
 
<design:component label="Your label">

If you need to change the names then you will have to use an IDE to change names and push via metadata API. You will have to delete the previous components via destructive XML since that will still exist in the org.

Or, you need to delete the component and create a new one with a new name.

There's an idea which is active on the success community with a similar discussion for which you can upvote so that it gets available in the future.

http://success.salesforce.com/ideaView?id=0873A000000cLiqQAE

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas