# \[HOW TO\] CLI install method

**URL:** <https://community.homey.app/t/how-to-cli-install-method/198>\
**Category:** Tutorials\
**Tags:** homey-pro\
**Created:** [August 23, 2018, 1:18pm UTC](https://community.homey.app/t/how-to-cli-install-method/198 "2018-08-23T13:18:12Z")\
**Posts on this page:** 20\
**Page:** 7

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 16, 2023, 11:52pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/129 "2023-04-16T23:52:12Z")

</div>

> [@Bulletcather](#):
>
> https://%homeyid%.homey.eu-west-1.homeypro.net

Your pro seems to be connected via cloud only.  
Make sure the connection is “Local” before proceeding with CLI installs

 ![image50](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/9/997bdd6c39059f43a63841f0813a24cd7bd046e5.png)

---

<div class="post-metadata">

**Author:** ![RobinS](https://avatars.discourse-cdn.com/v4/letter/r/d26b3c/32.png) [@RobinS](https://community.homey.app/u/RobinS)\
**Post date:** [October 12, 2023, 2:44pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/130 "2023-10-12T14:44:19Z")

</div>

Hallo,

Omdat de community store niet werkt, probeer ik mijn nieuwe homey te voorzien van de WEBOS plus app via de cli installatie.  
Echter wat ik ook probeer krijg ik dezelfde foutmelding.  
Wie kan me helpen?

Dankjewel!!

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/1/d155f4b02e313a57a5c445fa980a9801cb04af49.png)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [October 12, 2023, 3:01pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/131 "2023-10-12T15:01:53Z")

</div>

Reading the error message?  
I know, error messages are often hard to get.  
The cli install errors usually tell you quite clear what you still need to do to get the app working

 ![Screenshot_20231012-165623_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/e/ee9416da69dd3f733e7a2cebca5725d8a9088929.jpeg)

Just enter the mentioned command,  
`npm install`  
You may get further error messages. Just type the suggested commands until the app installs

---

<div class="post-metadata">

**Author:** ![bonaventure](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bonaventure/32/79712_2.png) [@bonaventure](https://community.homey.app/u/bonaventure)\
**Post date:** [October 15, 2023, 4:04pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/132 "2023-10-15T16:04:15Z")

</div>

Hi,  
I forked an app for test purposes and now want to run it on my homey.  
I am using nvm with current node/npm versions, and homey is updated.  
Whatever I try, I get the baby not running.

Symptoms / Questions:

- When doing “homey app build”, the file app.json is not re-generated.  
Does the app use an old SDK? I am new to this homey stuff :-pp, so maybe there is some magic?

- When I do “homey app run / install”:

> ✓ Plugin `compose` finished  
> ✓ Running plugin `zwave`…  
> ✓ Installing npm package (homey-zwavedriver)  
> ✓ Installation complete  
> ✓ Plugin `zwave` finished  
> ✓ Validating app…  
> ✓ Homey App validated successfully against level `debug`  
> ✓ Logging in…  
> To log in with your Athom Account, please visit [Athom CLI | Log-in](https://cli.athom.com?port=56444&clientId=xxx)?  
> Paste the code: yyy

> Client credentials are invalid

Inbetween it opens the web browser with

> Homey CLI Old would like to:
> 
> Full access to Homey  
> View your name and e-mail  
> View your Homeys

and tells me

> Successfully authorized. You can close this window.

Thanks for any hint where to continue reading (if any exists).

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [October 15, 2023, 4:24pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/133 "2023-10-15T16:24:32Z")

</div>

> [@bonaventure](#):
>
> Homey CLI Old would like to:

Like it says, it’s the old CLI. You’ll have to update Homey Cli.

---

<div class="post-metadata">

**Author:** ![bonaventure](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bonaventure/32/79712_2.png) [@bonaventure](https://community.homey.app/u/bonaventure)\
**Post date:** [October 15, 2023, 4:58pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/134 "2023-10-15T16:58:22Z")

</div>

Well, homey --version says

> 3.0.7

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 15, 2023, 5:07pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/136 "2023-10-15T17:07:55Z")

</div>

This is caused by using `nvm`. You probably installed an old version of `homey` outside of `nvm` and now it’s being picked _before_ the one that you installed when `nvm` was active.

---

<div class="post-metadata">

**Author:** ![bonaventure](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bonaventure/32/79712_2.png) [@bonaventure](https://community.homey.app/u/bonaventure)\
**Post date:** [October 15, 2023, 5:21pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/137 "2023-10-15T17:21:36Z")

</div>

yes,  
I wondered why it did’t grab the new version.

And your hint pushed me in the right direction.  
So I updated homey version in package.json … \<:-D  
then built, copied the app.json from .homeybuild to project root  
installed …

> ✓ Installing Homey App on `Stefans Homey Pro` ([https://10-0-0-85.homey.homeylocal.com](https://10-0-0-85.homey.homeylocal.com))…  
> ✓ Homey App `com.technisat.smarthome` successfully installed

and … wow … it runs like a charm LOL

iIstill wonder why

> homey app build

doesn’t not copy app.json back to project root.

PS I just switched from Smartthings Hub to Homey cause the former drove me crazy … in almost any aspect … usability, performance, stability, web integrations … even ZWAVE  
so … I can say I am happy with the homey pro 2023, except that some ZWAVE devices are not included with security enabled.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 16, 2023, 4:55am UTC](https://community.homey.app/t/how-to-cli-install-method/198/138 "2023-10-16T04:55:26Z")

</div>

> [@bonaventure](#):
>
> iIstill wonder why
> 
> > homey app build
> 
> doesn’t not copy app.json back to project root.

Have you tried removing the build directory entirely? And does the same happen when running `homey app run --remote`?

---

<div class="post-metadata">

**Author:** ![Marius\_Stensrod](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marius_stensrod/32/56540_2.png) [@Marius\_Stensrod](https://community.homey.app/u/Marius_Stensrod)\
**Post date:** [December 3, 2023, 5:04pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/139 "2023-12-03T17:04:26Z")

</div>

Hello,

Homey Pro 2023, Versjon 10.1.4-rc.3, Node.js v18.18.2  
trying to install a app by CLI (LG WebOS), when i run install from the directpry, i get several errors. Downloaded the app from Github.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/d/cd6f272be0745e57c31984425bd32b312ec1caef.png)

Tried to install Unz-Cure also, then i got a message of the Z-wave driver.

Someone got a clue what the issue is? Is the Repo of the apps outdated?

Regards  
Marius

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 3, 2023, 7:09pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/140 "2023-12-03T19:09:20Z")

</div>

Marius, pls read the error message carefully. The possible fixes are mentioned as well.

Hint:  
It`s in the line starting with  
`x Error: this error may be fixed`

So, there’s nothing wrong, but you have to install npm into the app, prior to installing the app @ Homey

This might not be the only error, just read the errors and look for the proposed possible fixes.

---

<div class="post-metadata">

**Author:** ![Marius\_Stensrod](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marius_stensrod/32/56540_2.png) [@Marius\_Stensrod](https://community.homey.app/u/Marius_Stensrod)\
**Post date:** [December 3, 2023, 7:15pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/141 "2023-12-03T19:15:59Z")

</div>

> [@Peter\_Kawa](#):
>
> The prossible fixes are mentioned as well.

I saw this, but afraid of doing something wrong.

Thank you, @Peter_Kawa 🙂

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/6/8620a5abe7e7e054b1b5ae1fcca334039bc9c891.jpeg)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 3, 2023, 7:18pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/142 "2023-12-03T19:18:40Z")

</div>

I get that, yeah it seems like a horrible crash at first.  
But it’s more useful than the ‘_an unknown error occurred, bye_’ messages 😊

---

<div class="post-metadata">

**Author:** ![Jean-Paul\_Boone](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jean-paul_boone/32/16748_2.png) [@Jean-Paul\_Boone](https://community.homey.app/u/Jean-Paul_Boone)\
**Post date:** [May 3, 2024, 6:55pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/144 "2024-05-03T18:55:27Z")

</div>

I’m trying to install the Airstage app from Github on Homey but it doesn’t work.  
[GitHub - mskg/homey-fujitsu](https://github.com/mskg/homey-fujitsu)

I receive the following messages.

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/e/ce3999b0d6ea66020fa4ca610343e1119faa5cd9.png)

Can anyone help me get it working?

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [May 4, 2024, 3:25am UTC](https://community.homey.app/t/how-to-cli-install-method/198/145 "2024-05-04T03:25:00Z")

</div>

If you could please keep the conversation in English as much as possible, then more people will be able to participate and help you. If you would rather not or can’t communicate in English then please check out Non-English boards/categories:

[Dansk (Danish)](https://community.homey.app/c/dansk)  
[Deutsch (German)](https://community.homey.app/c/deutsch)  
[Español (Spanish)](https://community.homey.app/c/espanol-spanish)  
[Suomeksi (Finnish)](https://community.homey.app/c/suomeksi)  
[Français (French)](https://community.homey.app/c/franc3a7ais)  
[Italiano (Italian)](https://community.homey.app/c/italiano)  
[Nederlands (Dutch)](https://community.homey.app/c/nederlands)  
[Norsk (Norwegian)](https://community.homey.app/c/norsk-norwegian)  
[Polskie (Polish)](https://community.homey.app/c/polskie)  
[Svenska (Swedish)](https://community.homey.app/c/svenska)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 4, 2024, 4:02pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/146 "2024-05-04T16:02:40Z")

</div>

Hello Jean-Paul,

When all the used sofware is up to date, this does not seem to be a CLI issue.  
You’ll have to report the errors to the app builder, you can create an issue at his Github page.

---

<div class="post-metadata">

**Author:** ![Jan\_Peeters](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_peeters/32/86660_2.png) [@Jan\_Peeters](https://community.homey.app/u/Jan_Peeters)\
**Post date:** [June 7, 2024, 2:01pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/147 "2024-06-07T14:01:51Z")

</div>

Hi,

Is there any possibility (I expect a firm : NO, but hey, you can’t blame me for hoping …) to install previous versions of official apps? I would be looking at a previous version of the Google Sheets app.

Thank you for your feedback.

---

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [June 7, 2024, 2:08pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/148 "2024-06-07T14:08:59Z")

</div>

You can only revert to a stable version if you installed a beta (test) version from the Homey App Store.  
For a testversion the url is followed by /test. The url’s without contain a stable version and those can’t be reverted to an older version.

Unless you can find a (i.e.) github version from an app in an older version. Then you can install that one by CLI.

---

<div class="post-metadata">

**Author:** ![HaakonSM](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/haakonsm/32/53877_2.png) [@HaakonSM](https://community.homey.app/u/HaakonSM)\
**Post date:** [August 7, 2024, 3:17pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/149 "2024-08-07T15:17:43Z")

</div>

Hello! When I tried installing an app from github in node.js I get the message × Error: Could not find a valid Homey App at ‘C:\Users\Håkon’:. Does anyone know what I am doing wrong?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [August 7, 2024, 3:24pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/150 "2024-08-07T15:24:40Z")

</div>

The path has to point to the unzipped app folder, like, `C:\users\you\app_folder`

The error msg says you’re not.

[Previous page](https://community.homey.app/t/how-to-cli-install-method/198.md?page=6)

[Next page](https://community.homey.app/t/how-to-cli-install-method/198.md?page=8)
