Install app from local directory

Hello, I’m trying to test my modification to the install of one application.

I’ve run and setup ynh-dev and run my instance.

I want to install my modified version of the app, which sits in a local directory. I remember there were an option like

yunohost app install –file /path/to/install

but it seems not feasible anymore and yunohost keeps trying to install from the web

1 Like

Did you try

yunohost app install /path/to/install

?

Yep:

root@yolo:/# yunohost app install /ynh-dev/my-apps/dont-code_ynh 
Error:Unknown app


And you see no option for installing from local folder:

root@yolo:/# yunohost app install --help 
usage: yunohost app install app [-h] [-l LABEL] [-a ARGS] [-n] [-f] [-i] 
 
Install apps 
 
positional arguments: 
app                   Name, local path or git URL of the app to install 
 
options: 
-h, --help            show this help message and exit 
-l LABEL, --label LABEL 
Custom name for the app 
-a ARGS, --args ARGS  Serialized arguments for app script (i.e. "domain=domain.tld&path=/path&init_main_permission=visitors") 
-n, --no-remove-on-failure 
Debug option to avoid removing the app on a failed installation 
-f, --force           Do not ask confirmation if the app is not safe to use (low quality, experimental or 3rd party), or when 
the app displays a post-install notification 
-i, --ignore-yunohost-version 
Attempt to install the app even if your YunoHost version is below the required one


I’m so sorry, it’s my fault. I mixed up the install dir and was asking yunohost to install the app from a invalid directly.

It’s fixed now.