1 .\" Automatically generated by Pandoc 1.19.2.1
3 .TH "PROSODYCTL" "1" "2017\-09\-02" "" ""
7 prosodyctl \- Manage a Prosody XMPP server
12 prosodyctl\ command\ [\-\-help]
17 prosodyctl is the control tool for the Prosody XMPP server.
18 It may be used to control the server daemon and manage users.
20 prosodyctl needs to be executed with sufficient privileges to perform
22 This typically means executing prosodyctl as the root user.
23 If a user named "prosody" is found then prosodyctl will change to that
24 user before executing its commands.
28 In the following commands users are identified by a Jabber ID, jid, of
29 the usual form: user\@domain.
32 Adds a user with Jabber ID, jid, to the server.
33 You will be prompted to enter the user\[aq]s password.
38 Changes the password of an existing user with Jabber ID, jid.
39 You will be prompted to enter the user\[aq]s new password.
44 Deletes an existing user with Jabber ID, jid, from the server.
49 Although prosodyctl has commands to manage the prosody daemon it is
50 recommended that you utilize your distributions daemon management
51 features if you attained Prosody through a package.
53 To perform daemon control commands prosodyctl needs a pidfile value
54 specified in \f[C]/etc/prosody/prosody.cfg.lua\f[].
55 Failure to do so will cause prosodyctl to complain.
58 Starts the prosody server daemon.
59 If run as root prosodyctl will attempt to change to a user named
60 "prosody" before executing.
61 This operation will block for up to five seconds to wait for the server
67 Stops the prosody server daemon.
68 This operation will block for up to five seconds to wait for the server
74 Restarts the prosody server daemon.
75 Equivalent to running prosodyctl stop followed by prosodyctl start.
80 Signals the prosody server daemon to reload configuration and reopen log
86 Prints the current execution status of the prosody server daemon.
91 prosodyctl can create self\-signed certificates, certificate requests
92 and private keys for use with Prosody.
93 Commands are of the form \f[C]prosodyctl\ cert\ subcommand\f[].
94 Commands take a list of hosts to be included in the certificate.
96 .B \f[C]request\ hosts\f[]
97 Create a certificate request (CSR) file for submission to a certificate
99 Multiple hosts can be given, sub\-domains are automatically included.
103 .B \f[C]generate\ hosts\f[]
104 Generate a self\-signed certificate.
108 .B \f[C]key\ host\ [size]\f[]
109 Generate a private key of \[aq]size\[aq] bits (defaults to 2048).
110 Invoked automatically by \[aq]request\[aq] and \[aq]generate\[aq] if
115 .B \f[C]config\ hosts\f[]
116 Produce a config file for the list of hosts.
117 Invoked automatically by \[aq]request\[aq] and \[aq]generate\[aq] if
122 .B \f[C]import\ hosts\ paths\f[]
123 Copy certificates for hosts into the certificate path and reload
129 prosodyctl can also show some information about the environment,
130 dependencies and such to aid in debugging.
133 Shows environment, various paths used by Prosody and installed
138 .B \f[C]check\ [what]\f[]
139 Performs various sanity checks on the configuration, DNS setup and
140 configured TLS certificates.
141 \f[C]what\f[] can be one of \f[C]config\f[], \f[C]dns\f[] and
142 \f[C]certs\f[] to run only that check.
145 .SS Ejabberd Compatibility
147 ejabberd is another XMPP server which provides a comparable control
148 tool, ejabberdctl, to control its server\[aq]s operations.
149 prosodyctl implements some commands which are compatible with
151 For details of how these commands work you should see ejabberdctl(8).
155 register\ user\ server\ password
157 unregister\ user\ server
162 .B \f[C]\-\-config\ filename\f[]
163 Use the specified config file instead of the default.
168 Don\[aq]t drop root privileges.
173 Display help text for the specified command.
178 .B \f[C]/etc/prosody/prosody.cfg.lua\f[]
179 The main prosody configuration file.
180 prosodyctl reads this to determine the process ID file of the prosody
181 server daemon and to determine if a host has been configured.
186 More information may be found online at: <https://prosody.im/>
188 Dwayne Bent <dbb.1@liqd.org>; Kim Alvefur.