Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: MDB CLI Project Name Change

chrisbowyer pro asked 5 years ago


Is it possible to rename an MDB CLI project? If so, how?


Sebastian Kaczmarek staff answered 5 years ago


Hi, yes it is possible.

If you want to change the folder name when initializing the project simply add -n project-name option, e.x:

$ mdb init -n new-project-name

and that's it.

If you want to change the name in package.json, then currently it is not possible but it's already on our todo list (something like mdb set-name [new name] will be available soon)


chrisbowyer pro commented 5 years ago

Unless I have overlooked something, all this does is create a new project with a seemingly irrelevant new name and possibly overwrite the initial project if the package.json name is not changed but create a new URL with the same files if the package.json name is changed, which is what I did. So now I have two URL's with the same files, and there is no apparent way to delete the original URL which would fix the issue too.

My URL's are as follows, and although the second URL is a test URL, I would like to be able to or you to delete the first URL.

https://mdbootstrap.com/projects/chrisbowyer/my-project/ https://mdbootstrap.com/projects/chrisbowyer/dev4/


Sebastian Kaczmarek staff commented 5 years ago

Ah, I see. So currently it's not possible to rename/unpublish the project which is already published. We will add such a feature.

I have deleted the first URL from the server.


chrisbowyer pro commented 5 years ago

Cool, Thank you. By the way, I am receiving four copies of each email sent for each comment.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: Other
  • MDB Version: -
  • Device: Laptop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No