yugabyted Beta

Noteyugabyted is under active development with new features and functionality being added incrementally. If you find missing features, use yb-ctl utility to develop and test local clusters. For production deployments, configure your clusters using and yb-master.

  • command: command to run
  • options: one or more options, separated by spaces.

You can access the overview command line help for yugabyted by running one of the following examples from the YugabyteDB home.

    1. $ ./bin/yugabyted -help

    For help with specific yugabyted commands, run ‘yugabyted [ command ] -h’. For example, you can print the command line help for the yugabyted start command by running the following:

    Commands

    The following commands are available:


    start

    Use the yugabyted start command to start a one-node YugabyteDB cluster in your local environment. This one-node cluster includes yb-tserver and services.

    Syntax

    1. yugabyted start
    2. [ -h | --help ]
    3. [ --config <config-file> ]
    4. [ --data_dir <data-dir> ]
    5. [ --log_dir <log-dir> ]
    6. [ --ycql_port <ycql-port> ]
    7. [ --ysql_port <ysql-port> ]
    8. [ --master_rpc_port <master-rpc-port> ]
    9. [ --tserver_rpc_port <tserver-rpc-port> ]
    10. [ --master_webserver_port <master-webserver-port> ]
    11. [ --tserver_webserver_port <tserver-webserver-port> ]
    12. [ --webserver_port <webserver-port> ]
    13. [ --bind_ip BIND_IP ]
    14. [ --callhome <bool> ]
    15. [ --ui <bool> ]
    -h, —help

    Print the commmand line help and exit.

    —config config-file

    The path to the configuration file.

    —data_dir data-directory

    The directory where YugabyteDB stores data.

    —log_dir log-directory

    The directory to store YugabyteDB logs.

    —ycql_port ycql-port

    The port on which YCQL will run.

    —ysql_port ysql-port

    The port on which YSQL will run.

    —master_rpc_port master-rpc-port
    —tserver_rpc_port tserver-rpc-port

    The port on which YB-TServer will listen for RPC calls.

    —master_webserver_port master-webserver-port

    The port on which YB-Master webserver will run.

    —tserver_webserver_port tserver-webserver-port

    The port on which YB-TServer webserver will run.

    —webserver_port webserver-port

    The port on which main webserver will run.

    —bind_ip bind-ip

    The IP address to which yugabyted processes will bind.

    —daemon bool

    Enable or disable running yugabyted in the background as a daemon. Does not persist on restart. Default is true.

    —callhome bool

    Enable or disable the “call home” feature that sends analytics data to Yugabyte. Default is true.

    —ui bool

    Enable or disable the webserver UI. Default is true.


    stop

    Use the yugabted stop command to stop a YugabyteDB cluster.

    Syntax

    1. yugabyted stop [ -h ] [ --config <config-file> ] [ --data_dir <data-directory> ]
    -h | —help

    Print the command line help and exit.

    —config config-file

    The path to the YugabyteDB configuration file.

    —data_dir data-directory

    status

    Use the yugabyted status command to check the status.

    Syntax

    -h —help

    Print the command line help and exit.

    —config config-file

    The path to the YugabyteDB configuration file.

    —data_dir data-directory

    The directory where YugabyteDB stores data.


    version

    Use the yugabyted version command to check the version number.

    Syntax

      -h | —help

      Print the help message and exit.

      —config config-file

      The path to the YugabyteDB configuration file.

      —data_dir data-directory

      The directory where YugabyteDB stores data.


      demo

      Use the yugabyted demo command to start YugabyteDB with a retail demo database. Get started with YSQL by using the Explore YSQL tutorial in the guide.

      NoteWhen you quit the demo instance, the retail demo database is deleted and any changes you’ve made are lost.

      Syntax

      Options

      -h | —help

      Print the help message and exit.

      —config config-file
      —data_dir data_directory

      The directory where YugabyteDB stores data.