Files

54 lines
2.8 KiB
Markdown

# filebrowser
A stylish web-based file browser
## Synopsis
File Browser CLI lets you create the database to use with File Browser,
manage your users and all the configurations without accessing the
web interface.
Run filebrowser init for initial setup. It creates the configuration file, prepares the database and prints the SSO callback URL. Local password accounts and command execution are not supported. Runtime options can still be overridden using flags or FB_ environment variables.
```
filebrowser [flags]
```
## Options
```
-a, --address string address to listen on (default "127.0.0.1")
-b, --baseURL string base url
--cacheDir string file cache directory (disabled if empty)
-t, --cert string tls certificate
-c, --config string config file path
-d, --database string database path (default "./filebrowser.db")
--disableExec disables Command Runner feature (default true)
--disableImageResolutionCalc disables image resolution calculation by reading image files
--disablePreviewResize disable resize of image previews
--disableThumbnails disable image thumbnails
--disableTypeDetectionByHeader disables type detection by reading file headers
--followExternalSymlinks follow symlinks whose target is outside the user scope (unsafe)
-h, --help help for filebrowser
--imageProcessors int image processors count (default 4)
-k, --key string tls key
-l, --log string log output (default "stdout")
-p, --port string port to listen on (default "8080")
--redisCacheUrl string redis cache URL (for multi-instance deployments), e.g. redis://user:pass@host:port
-r, --root string root to prepend to relative paths (default ".")
--socket string socket to listen to (cannot be used with address, port, cert nor key flags)
--socketPerm uint32 unix socket file permissions (default 438)
--tokenExpirationTime string user session timeout (default "2h")
```
## See Also
* [filebrowser cmds](filebrowser-cmds.md) - Command runner management utility
* [filebrowser completion](filebrowser-completion.md) - Generate the autocompletion script for the specified shell
* [filebrowser config](filebrowser-config.md) - Configuration management utility
* [filebrowser hash](filebrowser-hash.md) - Hashes a password
* [filebrowser init](filebrowser-init.md) - Initial setup: SSO, file directory and database
* [filebrowser rules](filebrowser-rules.md) - Rules management utility
* [filebrowser version](filebrowser-version.md) - Print the version number