# Basic commands

EMQX Broker provides the emqx command line tool, which is convenient for users to start, stop, and enter the console of EMQX Broker.

  • emqx start

    Start the EMQX Broker

  • emqx stop

    Stop the EMQX Broker

  • emqx restart

    Restart the EMQX Broker

  • emqx console

    Start the EMQX Broker with console

  • emqx foreground

    Start EMQX Broker with console. Unlike emqx console , emqx foreground does not support entering Erlang commands;

  • emqx ping

    Ping EMQX Broker

The above commands are commonly used by users. In addition, the emqx command has some other options for the convenience of developers (ordinary users do not need to care about those).

What’s on this page