(zettel (meta (back "00001004011400 00001004050000 00001004050400 00001004051100") (backward "00001004010000 00001004011400 00001004050000 00001004050400 00001004051100") (box-number "1") (created "20210126175322") (forward "00001004010000 00001004100000 00001012000000 00001014000000") (modified "20251218182805") (published "20251218182805") (role "manual") (syntax "zmk") (tags "#command #configuration #manual #zettelstore") (title "The ''run'' sub-command")) (rights 4) (encoding "") (content "=== ``zettelstore run``\nThis starts the web service.\n\n```\nzettelstore run [-a PORT] [-c CONFIGFILE] [-d DIR] [-debug] [-p PORT] [-r] [-v]\n```\n\n; [!a|''-a PORT'']\n: Specifies the TCP port through which you can reach the [[administrator console|00001004100000]].\n See the explanation of [[''admin-port''|00001004010000#admin-port]] for more details.\n; [!c|''-c CONFIGFILE'']\n: Specifies ''CONFIGFILE'' as a file, where [[startup configuration data|00001004010000]] is read.\n It is ignored if the given file is not available or not readable.\n\n Default: tries to read the following files in the \"\"current directory\"\": ''zettelstore.cfg'', ''zsconfig.txt'', ''zscfg.txt'', ''_zscfg'', and ''.zscfg''. \n; [!d|''-d DIR'']\n: Specifies ''DIR'' as the directory that contains all zettel.\n\n Default is ''./zettel'' (''.\\\\zettel'' on Windows), where ''.'' denotes the \"\"current directory\"\".\n; [!debug|''-debug'']\n: Allows debugging of the internal web server.\n Same as setting [[''debug-mode''|00001004010000#debug-mode]] to \"\"true\"\".\n\n; [!p|''-p PORT'']\n: Specifies the integer value ''PORT'' as the TCP port, where the Zettelstore web server listens for requests.\n\n Default: 23123.\n\n Zettelstore listens only on ''127.0.0.1'', e.g. only requests from the current computer will be processed.\n If you want to listen on a specific network interface to process requests from other computers, please use [[''listen-addr''|00001004010000#listen-addr]] of the configuration file.\n; [!r|''-r'']\n: Puts the Zettelstore in read-only mode.\n No changes are possible via the [[web user interface|00001014000000]] / via the [[API|00001012000000]].\n\n This allows to publish your content without any risks of unauthorized changes.\n; [!v|''-v'']\n: Be more verbose when writing logs.\n\nCommand line options take precedence over [[configuration file|00001004010000]] options."))