root@fcnas:~# filebrowser config export
-bash: filebrowser: command not found
To edit it from CLI you would need to call /opt/filebrowser/filebrowser
since it’s not in any sbin
/bin
directory.
For future users who want to change config from CLI:
(in this example we change the root directory, which file browser will use. In this example we set it to /mnt/NAS
.
To show all options, run /opt/filebrowser/filebrowser --help
or have a look into https://filebrowser.org/cli)
systemctl stop filebrowser.service
/opt/filebrowser/filebrowser config set -r /mnt/NAS -d /mnt/dietpi_userdata/filebrowser/filebrowser.db
systemctl start filebrowser.service
-r
specifies the root path which the app will use
-d
is the path to the database where the config is stored, the path shown is the default path on DietPi for File Browser’s config