houradm: install and maintain
Make the admin password hash and the secret key the server reads at startup. On Windows, houradm also installs the server as a service (the Deploying page of the docs covers it under “Windows service”).
houradm hash-password
Print an argon2 hash of a password, for HOURADVANTAGE_ADMIN_PASSWORD_HASH.
Asks for the password twice at the terminal (not shown as typed), or with —stdin reads it from the first line of stdin. Put the hash in HOURADVANTAGE_ADMIN_PASSWORD_HASH, or in the file HOURADVANTAGE_ADMIN_PASSWORD_HASH_FILE names.
houradm hash-password [OPTIONS]Options:
--stdin: Read the password from the first line of stdin instead of asking.
Example:
houradm hash-passwordhouradm gen-secret-key
Print a new key for sealing the secrets kept in the database, for HOURADVANTAGE_SECRET_KEY.
Put it in HOURADVANTAGE_SECRET_KEY, or in the file HOURADVANTAGE_SECRET_KEY_FILE names. Every instance sharing the database needs the same key.
houradm gen-secret-keyExample:
houradm gen-secret-key