2424.Sh SYNOPSIS
2525.\" ------------------------------------------------------------------
2626.Nm
27+ .Op Fl q
28+ .Op Fl s
29+ .Op Fl l
2730.Op Fl n Ar node
31+ .Op Fl t Ar timeout
2832.Ar command
2933.Op Ar command_options
3034.\" ------------------------------------------------------------------
3135.Sh DESCRIPTION
3236.\" ------------------------------------------------------------------
3337.Nm
3438is a command line tool for managing RabbitMQ plugins.
35- It allows one to enable, disable and browse plugins.
39+ See the
40+ .Lk https://www.rabbitmq.com/plugins.html " RabbitMQ Plugins guide"
41+ for an overview of RabbitMQ plugins and how they are used.
42+
43+ .Nm
44+ allows the operator to enable, disable and inspect plugins.
3645It must be run by a user with write permissions to the RabbitMQ
3746configuration directory.
3847.Pp
39- Some plugins depend on others to work correctly .
48+ Plugins can depend on other plugins .
4049.Nm
41- traverses these dependencies and enables all required plugins.
50+ resolves the dependencies and enables or disables all dependencies
51+ so that the user doesn't have to manage them explicitly.
4252Plugins listed on the
4353.Nm
4454command line are marked as explicitly enabled; dependent plugins are
5464commands will update the plugins file and then attempt to connect to the
5565broker and ensure it is running all enabled plugins.
5666By default if it is not possible to connect to the running broker (for
57- example if it is stopped) then a warning is displayed .
58- Specify
59- .Fl -online
60- or
67+ example if it is stopped) the operation will fail .
68+ If
69+ .Nm
70+ is used on the same host as the target node,
6171.Fl -offline
62- to change this behaviour.
72+ can be specified to make
73+ .Nm
74+ resolve and update plugin state directly (without contacting the node).
75+ Such changes will only have an effect on next node start.
76+ To learn more, see the
77+ .Lk https://www.rabbitmq.com/plugins.html " RabbitMQ Plugins guide"
78+ .
79+ .\" ------------------------------------------------------------------
80+ .Sh OPTIONS
81+ .\" ------------------------------------------------------------------
82+ .Bl -tag -width Ds
83+ .It Fl n Ar node
84+ Default node is
85+ .Qq Pf rabbit@ Ar target-hostname ,
86+ where
87+ .Ar target-hostname
88+ is the local host.
89+ On a host named
90+ .Qq myserver.example.com ,
91+ the node name will usually be
92+ .Qq rabbit@myserver
93+ (unless
94+ .Ev RABBITMQ_NODENAME
95+ has been overridden).
96+ The output of
97+ .Qq hostname -s
98+ is usually the correct suffix to use after the
99+ .Qq @
100+ sign.
101+ See
102+ .Xr rabbitmq-server 8
103+ for details of configuring a RabbitMQ node.
104+ .It Fl q , -quiet
105+ Quiet output mode is selected.
106+ Informational messages are reduced when quiet mode is in effect.
107+ .It Fl s , -silent
108+ Silent output mode is selected.
109+ Informational messages are reduced and table headers are suppressed when silent mode is in effect.
110+ .It Fl t Ar timeout , Fl -timeout Ar timeout
111+ Operation timeout in seconds.
112+ Not all commands support timeouts.
113+ Default is
114+ .Cm infinity .
115+ .It Fl l , Fl -longnames
116+ Must be specified when the cluster is configured to use long (FQDN) node names.
117+ To learn more, see the
118+ .Lk https://www.rabbitmq.com/clustering.html " RabbitMQ Clustering guide"
119+ .It Fl -erlang-cookie Ar cookie
120+ Shared secret to use to authenticate to the target node.
121+ Prefer using a local file or the
122+ .Ev RABBITMQ_ERLANG_COOKIE
123+ environment variable instead of specifying this option on the command line.
124+ To learn more, see the
125+ .Lk https://www.rabbitmq.com/cli.html " RabbitMQ CLI Tools guide"
126+ .El
63127.\" ------------------------------------------------------------------
64128.Sh COMMANDS
65129.\" ------------------------------------------------------------------
@@ -124,9 +188,9 @@ This command lists all implicitly or explicitly enabled RabbitMQ plugins.
124188.It Cm enable Oo Fl -offline Oc Oo Fl -online Oc Ar plugin ...
125189.Bl -tag -width Ds
126190.It Fl -offline
127- Just modify the enabled plugins file .
191+ Modify node's enabled plugin state directly without contacting the node .
128192.It Fl -online
129- Treat failure to connect to the running broker as fatal.
193+ Treat a failure to connect to the running broker as fatal.
130194.It Ar plugin
131195One or more plugins to enable.
132196.El
@@ -144,29 +208,29 @@ plugins and all their dependencies:
144208.It Cm disable Oo Fl -offline Oc Oo Fl -online Oc Ar plugin ...
145209.Bl -tag -width Ds
146210.It Fl -offline
147- Just modify the enabled plugins file .
211+ Modify node's enabled plugin state directly without contacting the node .
148212.It Fl -online
149- Treat failure to connect to the running broker as fatal.
213+ Treat a failure to connect to the running broker as fatal.
150214.It Ar plugin
151215One or more plugins to disable.
152216.El
153217.Pp
154218Disables the specified plugins and all their dependencies.
155219.Pp
156220For example, this command disables
157- .Qq amqp_client
221+ .Qq rabbitmq_management
158222and all plugins that depend on it:
159223.sp
160- .Dl rabbitmq-plugins disable amqp_client
224+ .Dl rabbitmq-plugins disable rabbitmq_management
161225.\" ------------------------------------
162226.It Cm set Oo Fl -offline Oc Oo Fl -online Oc Op Ar plugin ...
163227.Bl -tag -width Ds
164228.It Fl -offline
165- Just modify the enabled plugins file .
229+ Modify node's enabled plugin state directly without contacting the node .
166230.It Fl -online
167- Treat failure to connect to the running broker as fatal.
231+ Treat a failure to connect to the running broker as fatal.
168232.It Ar plugin
169- Zero or more plugins to enable .
233+ Zero or more plugins to disable .
170234.El
171235.Pp
172236Enables the specified plugins and all their dependencies.
0 commit comments