📂 A media library server and browser.
Run yarn global add ordinem
or npm i -g ordinem
.
To use a configuration file, add a configuration file following the cosmiconfig standard (e.g. .ordinemrc.json
) to your project and the ordinem CLI will find it automatically. Options from the CLI still take precedence over the configuration file.
The structure of the configuration file is the following:
{
/** set the server port */
dir?: string;
/** set the directory to serve */
port?: number;
}
Usage: ordinem [options]
A media library server and browser.
Options:
--noconfig don't look for a configuration file
-p, --port <port> set the server port (default: 8000)
-d, --dir <dir> set the directory to serve (default: ".")
-v, --version output the version number
-h, --help output usage information