# Specify project name with hyphen

**URL:** <https://community.localwp.com/t/specify-project-name-with-hyphen/25233>\
**Category:** Support\
**Created:** [April 14, 2021, 5:29pm UTC](https://community.localwp.com/t/specify-project-name-with-hyphen/25233 "2021-04-14T17:29:53Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![djmtype](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@djmtype](https://community.localwp.com/u/djmtype)\
**Post date:** [April 14, 2021, 5:29pm UTC](https://community.localwp.com/t/specify-project-name-with-hyphen/25233/1 "2021-04-14T17:29:53Z")

</div>

I have a git-managed repo which includes a hyphen in the name. The problem is when setting up a project in local, it doesn’t allow me to modify the project name within the local site path.

That’s a real issue because I won’t be able to migrate this project. Local’s project folder name needs to be identical to the git-managed project.

Is there a way to allow modifying the project name? I tried after setting up the project, but Local just added a directory with the old project name.

#### System Details

- Which version of Local is being used? Local 5.10.3

- What Operating System (OS) and OS version is being used?  
MacOS 11.2.3

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [April 14, 2021, 9:48pm UTC](https://community.localwp.com/t/specify-project-name-with-hyphen/25233/2 "2021-04-14T21:48:06Z")

</div>

I’m having a little trouble thinking through what’s going on – Do you have a screenshot to help me visualize?

Is the Git repo a site-level repo that you’re trying to use at the `sitename/app/public` root, or is something else going on?

---

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [April 14, 2021, 9:50pm UTC](https://community.localwp.com/t/specify-project-name-with-hyphen/25233/3 "2021-04-14T21:50:26Z")

</div>

Might be related [New site strips dashes](https://localwp.com/community/t/new-site-strips-dashes/8997)

---

<div class="post-metadata">

**Author:** ![djmtype](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@djmtype](https://community.localwp.com/u/djmtype)\
**Post date:** [April 14, 2021, 11:32pm UTC](https://community.localwp.com/t/specify-project-name-with-hyphen/25233/4 "2021-04-14T23:32:52Z")

</div>

@ben.turner Yes, the repo is site-level.

@afragen Yes, sort of. The domain url remains intact with the hyphen (IE: test-site.local), but the project directory does not (IE: testsite). And it can’t be modified either during the setup process.

 ![Screen Shot 5](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/4/44baaf825ccdcc4b41092e4cd7d04781bae27f57.png)

---

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [April 15, 2021, 12:21am UTC](https://community.localwp.com/t/specify-project-name-with-hyphen/25233/5 "2021-04-15T00:21:06Z")

</div>

In fact, I think this is the same issue previously described. I would love it to be fixed. In early versions, I don’t remember how far back, it did work.

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [April 16, 2021, 3:02pm UTC](https://community.localwp.com/t/specify-project-name-with-hyphen/25233/6 "2021-04-16T15:02:07Z")

</div>

Thanks for the screenshot, this has shown me a “feature” of Local that wasn’t aware of!

The Site Name in Local is only used in the Local GUI, so would it be possible to name the site `test site` and let it auto infer the dashes?

I’m curious though, are you not able to manually update the path and domain to whatever custom values you want?

I was able to name a site `dashed-site` and update the other values accordingly:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/5/58613c706d9c5b531d460e0e44b18b9c01677ad1.png)

---

<div class="post-metadata">

**Author:** ![djmtype](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@djmtype](https://community.localwp.com/u/djmtype)\
**Post date:** [April 30, 2021, 10:06pm UTC](https://community.localwp.com/t/specify-project-name-with-hyphen/25233/7 "2021-04-30T22:06:57Z")

</div>

@ben.turner no I wasn’t able to do that. I could name my domain with a dash, but Local wouldn’t allow me to change the folder name like you have illustrated in your screenshot above. It would automatically name it without a hyphen. I can change the site path location but not the directory folder name. It’s kind of frustrating. I tried on MacOS 11.2.x and 11.3 with Flywheel 5.10.3+5332

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [May 3, 2021, 3:31pm UTC](https://community.localwp.com/t/specify-project-name-with-hyphen/25233/8 "2021-05-03T15:31:25Z")

</div>

> [@djmtype](#):
>
> I can change the site path location but not the directory folder name

I’m not able to replicate what you’re seeing – can you record a screencast of the behavior you’re seeing?

I’m able to click “New Folder” within finder and name the folder whatever I want:

[https://i.getf.ly/Jru454RD](https://i.getf.ly/Jru454RD)

---

<div class="post-metadata">

**Author:** ![djmtype](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@djmtype](https://community.localwp.com/u/djmtype)\
**Post date:** [May 3, 2021, 8:00pm UTC](https://community.localwp.com/t/specify-project-name-with-hyphen/25233/9 "2021-05-03T20:00:29Z")

</div>

OH gotcha!  
I see, at 13 sec into your video, you actually have to create a new folder with the hyphened name, so it’s not being derived from the automated name.

I was trying to edit the actual “Local site path” input field instead because that made more sense to me.

This might also have to do with muscle memory. Coming from MAMP Pro, that local site path endpoint, isn’t filled in until you actually chose the project’s directory. In other words, according to your screencast, the “dashedsite” name wouldn’t be auto generated.

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [May 3, 2021, 9:25pm UTC](https://community.localwp.com/t/specify-project-name-with-hyphen/25233/10 "2021-05-03T21:25:14Z")

</div>

Nice! I’m glad we were able to figure things out and get a workaround for you!

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 1, 2021, 9:25pm UTC](https://community.localwp.com/t/specify-project-name-with-hyphen/25233/11 "2021-08-01T21:25:15Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
