This page explains in detail the usage of the command line utility of hydrus.
The serve
command starts the server. Using hydrus serve
from the terminal simply fires up the server with the following default values:
--adduser: tuple([1, "test"])
--api: "serverapi"
--auth/--no-auth: True
--dburl: "sqlite:///:memory:"
--hydradoc: "doc.jsonld"
--port: 8080
--serverurl: "http://localhost/"
--token/--no-token: True
Syntax:
--adduser <username (integer)> <passphrase (text)>
or
-u <username (integer)> <passphrase (text)>
Syntax:
--api <API Name (text)>
or
-a <API Name (text)>
Syntax:
--auth
or
--no-auth
Syntax:
--dburl <DB URL (text/url)>
or
-b <DB URL (text/url)>
Syntax:
--hydradoc <Link to file (text)>
or
-d <Link to file (text)>
Syntax:
--port <Port number (integer)>
or
-p <Port number (integer)>
Syntax:
--serverurl <URL (text/url)>
or
-s <URL (text/url)>
Syntax:
--token
or
--no-token
Setting up a server with custom options can be done as follows:
hydrus serve --api hydrus --port 9000 --adduser 1 test2