- Server mode: run the API, background tasks and Web UI integration
## Main commands
Run once:
```bash
cargo run --bin tuliprox -- -c config/config.yml -i config/source.yml
```
Run as server:
```bash
cargo run --bin tuliprox -- -s -c config/config.yml -i config/source.yml
```
Generate a UI password hash:
```bash
cargo run --bin tuliprox -- --genpwd
```
## CLI arguments
```text
Usage: tuliprox [OPTIONS]
Options:
-H, --home <HOME>
-p, --config-path <CONFIG_PATH>
-c, --config <CONFIG_FILE>
-i, --source <SOURCE_FILE>
-m, --mapping <MAPPING_FILE>
-T, --template <TEMPLATE_FILE>
-t, --target <TARGET>
-a, --api-proxy <API_PROXY>
-s, --server
-l, --log-level <LOG_LEVEL>
--genpwd
--healthcheck
--scan-library
--force-library-rescan
--dbx
--dbm
--dbms
--dbe
--dbv
```
`--dbx`, `--dbm`, `--dbe`, `--dbv` and `--dbms` open the internal database viewers for Xtream, M3U, EPG, target-id mapping and metadata retry status files.
## Important files
-`config/config.yml`: application and server configuration
-`config/source.yml`: inputs, providers, targets
-`config/api-proxy.yml`: users and published server URLs