prosodyctl command [--help]
prosodyctl needs to be executed with sufficient privileges to perform its commands. This typically means executing prosodyctl as the root user. If a user named "prosody" is found then prosodyctl will change to that user before executing its commands.
- adduser jid
- Adds a user with Jabber ID, jid, to the server. You will be prompted to enter the user's password.
- passwd jid
- Changes the password of an existing user with Jabber ID, jid. You will be prompted to enter the user's new password.
- deluser jid
- Deletes an existing user with Jabber ID, jid, from the server.
To perform daemon control commands prosodyctl needs a pidfile value specified in /etc/prosody/prosody.cfg.lua. Failure to do so will cause prosodyctl to complain.
- Starts the prosody server daemon. If run as root prosodyctl will attempt to change to a user named "prosody" before executing. This operation will block for up to five seconds to wait for the server to execute.
- Stops the prosody server daemon. This operation will block for up to five seconds to wait for the server to stop executing.
- Restarts the prosody server daemon. Equivalent to running prosodyctl stop followed by prosodyctl start.
- Signals the prosody server daemon to reload configuration and reopen log files.
- Prints the current execution status of the prosody server daemon.
- request hosts
- Create a certificate request (CSR) file for submission to a certificate authority. Multiple hosts can be given, sub-domains are automatically included.
- generate hosts
- Generate a self-signed certificate.
- key host [size]
- Generate a private key of 'size' bits (defaults to 2048). Invoked automatically by 'request' and 'generate' if needed.
- config hosts
- Produce a config file for the list of hosts. Invoked automatically by 'request' and 'generate' if needed.
- import hosts paths
- Copy certificates for hosts into the certificate path and reload prosody.
- Shows environment, various paths used by Prosody and installed dependencies.
- check [what]
- Performs various sanity checks on the configuration, DNS setup and configured TLS certificates. what can be one of config, dns and certs to run only that check.
register user server password unregister user server
- --config filename
- Use the specified config file instead of the default.
- Don't drop root privileges.
- Display help text for the specified command.
- The main prosody configuration file. prosodyctl reads this to determine the process ID file of the prosody server daemon and to determine if a host has been configured.