Expand description
§Command-Line Help for ordinaryd
This document contains the help content for the ordinaryd command-line program.
Command Overview:
§ordinaryd
Ordinary Server
Usage: ordinaryd [OPTIONS] <COMMAND>
§Subcommands:
init— initialize the environment for an Ordinary API serverapi— start the Ordinary API serverapp— start an Ordinary Application server
§Options:
-
--data-dir <DATA_DIR>— specify the data directoryDefault value:
~/.ordinary -
--stored-logs— persists JSON formatted log lines to/logs/ / Default value:
false -
--stdio-logs— logs events to stdioDefault value:
false -
--stdio-logs-fmt <STDIO_LOGS_FMT>— how to format stdio logsDefault value:
jsonPossible values:
concise,pretty,json -
--journald-logs— logs events tojournald(only works on Linux distros that usesystemd)Default value:
false -
--log-level <LOG_LEVEL>— base log level for every componentDefault value:
infoPossible values:
error,warn,info,debug,trace -
--log-sizes— whether storage and certain payload sizes are loggedDefault value:
false -
--stdio-logs-timing— whether span timing is loggedDefault value:
false
§ordinaryd init
initialize the environment for an Ordinary API server
Usage: ordinaryd init [OPTIONS] --storage-size <STORAGE_SIZE> --api-domain <API_DOMAIN>
§Options:
-
--environment <ENVIRONMENT>— environment (e.g production, development, staging)Default value:
staging -
--storage-size <STORAGE_SIZE>— Storage size in bytes (rounded up to nearest OS page size) -
--api-domain <API_DOMAIN>— domain name for API console -
--password <PASSWORD>— instance user passwordDefault value:
password -
--mfa-stored— store the MFA key locally instead of copying a QR codeDefault value:
false -
--api-contacts <API_CONTACTS>— contacts for the API domain cert provisioning -
--app-domains <APP_DOMAINS>— domains that apps can subdomain off of.i.e. when
example.comis passed,my.example.comis considered a valid app domain. -
--privileged-domains <PRIVILEGED_DOMAINS>— list of applications that have access to API server level commands (i.e. API server invite token generation)currently intended to enable API server admins to set up a web-based registration portal.
§ordinaryd api
start the Ordinary API server
Usage: ordinaryd api [OPTIONS] --storage-size <STORAGE_SIZE>
§Options:
-
--environment <ENVIRONMENT>— environment (e.g production, development, staging)Default value:
staging -
--storage-size <STORAGE_SIZE>— Storage size in bytes (rounded up to nearest OS page size) -
--provision <PROVISION>— what mode TLS certs should be provisioned inDefault value:
localhostPossible values:
staging,production,localhost -
--port <PORT>— specify HTTP(s) port for server -
--redirect-port <REDIRECT_PORT>— specify HTTP port for server when running in secure mode -
--insecure— run without HTTPSDefault value:
false -
--insecure-cookies— run with insecure cookiesDefault value:
false -
--log-ttl-hours <LOG_TTL_HOURS>— max period of time logs are storedDefault value:
72 -
--log-rotation-file-size <LOG_ROTATION_FILE_SIZE>— max size (in bytes) per log fileDefault value:
10000000 -
--log-rotation-mins <LOG_ROTATION_MINS>— max amount of time a log file is appended to before being compressed and storedDefault value:
60 -
--log-headers— whether HTTP request and response headers are loggedDefault value:
false -
--log-ips— whether IP Addresses are logged with HTTP requestsDefault value:
false -
--redacted-header-hash <REDACTED_HEADER_HASH>— “none” | “blake2” | “blake3”Default value:
none -
--dedicated-ports— give each app its own portDefault value:
false -
--swagger— Storage size in bytes (rounded up to nearest OS page size)Default value:
false
§ordinaryd app
start an Ordinary Application server
Usage: ordinaryd app [OPTIONS]
§Options:
-
--provision <PROVISION>— what mode TLS certs should be provisioned inDefault value:
localhostPossible values:
staging,production,localhost -
--port <PORT>— specify HTTP(s) port for server -
--redirect-port <REDIRECT_PORT>— specify HTTP port for server when running in secure mode -
--insecure— run without HTTPSDefault value:
false -
--insecure-cookies— run with insecure cookiesDefault value:
false -
--log-ttl-hours <LOG_TTL_HOURS>— max period of time logs are storedDefault value:
72 -
--log-rotation-file-size <LOG_ROTATION_FILE_SIZE>— max size (in bytes) per log fileDefault value:
10000000 -
--log-rotation-mins <LOG_ROTATION_MINS>— max amount of time a log file is appended to before being compressed and storedDefault value:
60 -
--log-headers— whether HTTP request and response headers are loggedDefault value:
false -
--log-ips— whether IP Addresses are logged with HTTP requestsDefault value:
false -
--redacted-header-hash <REDACTED_HEADER_HASH>— “none” | “blake2” | “blake3”Default value:
none -
-p,--project <PROJECT>— for running a standalone project. (project must already be built)Default value:
. -
--domain-override <DOMAIN_OVERRIDE>— use a different domain than what’s in theordinary.json
This document was generated automatically by
clap-markdown.