mStream/docs/cli_arguments.md
robozman 11302bf057 Update cli_arguments.md
Corrected image-cache direction instruction to use -I flag instead of -m flag
2017-07-08 22:25:51 -04:00

2.4 KiB

This document covers all the stable configuration options for mStream. To see all configuration options you can look at configure-commander.js file. Any options not documented here are experimental and may not work.

Please note that all paths to folders and files must be absolute. Relative paths will not work. This is a compromise made early on to prevent bugs when running mStream on Windows.

Set Port

Use the -p command to set the port. Will default to 3000 if not set

mstream -p 5050

Set Music Directory

Use the -m command to set the music directory. This must be a full path. Relative paths will not work!

Will default to current working directory if not set

mstream -m /path/to/music

Album Art Directory

Use the -I command to set the album art directory. All album art scraped from metadata will be stored here. Make sure mStream has write access to this folder.

Defaults to the image-cache directory in the project if not set

mstream -I /path/to/album-art

SSL

All you need to do is set the cert and key file and mStream will do the rest

mstream -c /path/to/cert.pem -k /path/to/key.pem

User System

mStream can have a single user and guest. If the user is not set mStream will disable to the user system and anyone will be able to access the server

# Set User
mstream -u [username] -x [password]

# Set user and guest
mstream -u [username] -x [password] -G [guest name] -X [guest password]

Login Secret

You can set your login secret key with the -s command

mstream -s /path/to/secret/file

If not set mStream will generate a random string to use as the secret key on boot. If rebooted, the secret key will be regenerated and any previous keys will no longer work

Database Options

mStream automatically makes a SQLite DB file in the folder of the directory it is run from. You can change the database path with the -d command

mstream -d /path/to/mstream.db

Automatically setup port forwarding

mStream can try to automatically setup port forwarding via upnp. Use the '-t' command to try to setup port forwarding.

mstream  -t

Please note that not all routers will allow this.

Some routers may close this port after a period of time. You can get around this by having mStream retry this on a regular interval

mstream -t -r [time in milliseconds]
mstream -t -r 100000