# Ghost install local command broken

**URL:** <https://forum.ghost.org/t/ghost-install-local-command-broken/1550>\
**Category:** Developer help\
**Created:** [June 8, 2018, 7:13pm UTC](https://forum.ghost.org/t/ghost-install-local-command-broken/1550 "2018-06-08T19:13:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxcr](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/maxcr/32/743_2.png) [@maxcr](https://forum.ghost.org/u/maxcr)\
**Post date:** [June 8, 2018, 7:13pm UTC](https://forum.ghost.org/t/ghost-install-local-command-broken/1550/1 "2018-06-08T19:13:58Z")

</div>

So I can run `ghost install local` or `ghost install 1.23.1` but I can’t locally install a specific version? Latest version is fucked. I need 1.23.1 for my local development. If I try to install specific version for local development its either detected as an errenous operand or production – **worse yet it complains there’s a version of ghost installed**. Why doesn’t it just download and install to `./versions` if it detects an existing install?

Anyway I manually added 1.23.1 and changed the `current` symlink. Now `ghost ls` no instances are listed because I manually setup the files and do not know what files are created/moved/modified in the `~/.ghost-cli` directory to reflect the manual changing of versions. The `ghost run` and `ghost stop` commands still work, just not `ghost ls`

Nevermind just modify `~/.ghost/config` & `$CWD/.ghost-cli` using these skeletons respectively.

```auto
{
  "instances": {
    "ghost-local-1": {
      "cwd": "/path/to/ghost"
    }
  }
}

```

Must change `ghost-cli` file to reflect the version you manually changed to

```auto
{
  "cli-version": "1.8.1",
  "active-version": "1.23.1",
  "name": "ghost-local-1",
  "running": "development"
}

```

Kind of an edge case I guess but still would have saved me like 5 minutes of head scratching.

---

<div class="post-metadata">

**Author:** ![Kate](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kate/32/35_2.png) [@Kate](https://forum.ghost.org/u/Kate)\
**Post date:** [June 8, 2018, 7:23pm UTC](https://forum.ghost.org/t/ghost-install-local-command-broken/1550/2 "2018-06-08T19:23:01Z")

</div>

> but I can’t locally install a specific version?

You can.

> ghost install 1.23.1 --local

It’s a combination of both arguments [in our documentation](https://docs.ghost.org/docs/cli-install#section-arguments). I’ll put this as an example.

> Latest version is fucked

Latest version is [1.24.1](https://github.com/TryGhost/Ghost/releases/tag/1.24.1). Did you experience any problems with it? If yes, please raise a new topic in the forum. Thanks 👍

---

<div class="post-metadata">

**Author:** ![maxcr](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/maxcr/32/743_2.png) [@maxcr](https://forum.ghost.org/u/maxcr)\
**Post date:** [June 8, 2018, 7:26pm UTC](https://forum.ghost.org/t/ghost-install-local-command-broken/1550/3 "2018-06-08T19:26:26Z")

</div>

Ah its in website docs but not in manpages i.e. `man ghost` or `ghost --help` that’s where I got confused. Pl0zcxzx update `ghost-cli` help/manpages to reflect that. Thank you. As for the bug, there’s already been a report submitted.

> <https://github.com/TryGhost/Ghost/issues/9674>
>
> \### Issue Summary
> 
> Helper {{#is "home"}}{{/is}} it works the same as {{#is "in…dex"}}{{/is}}
> 
> \### Technical details:
> 
> \* Ghost Version: 1.24.1
> \* Node Version: 8.11.1
> \* Browser/OS: Safari/macOS
> \* Database: sqlite3

I appreciate you Kate \<3

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [August 2, 2018, 11:25am UTC](https://forum.ghost.org/t/ghost-install-local-command-broken/1550/4 "2018-08-02T11:25:02Z")

</div>

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