yugabyted is a command-line utility for deploying and managing YugabyteDB universes locally on your laptop or on VMs for production deployments.
Synopsis
Description
yugabyted provides a simplified way to manage YugabyteDB clusters without directly managing YB-Master and YB-TServer processes. It handles installation, configuration, and lifecycle management of YugabyteDB nodes. Key features:- Single command to start/stop/destroy clusters
- Built-in configuration for multi-zone/multi-region deployments
- Integrated backup and restore capabilities
- Support for xCluster replication
- Point-in-time recovery (PITR) configuration
- TLS/SSL certificate generation
Installation
The yugabyted executable is packaged with YugabyteDB and located in thebin directory.
Base Directory
By default, yugabyted uses$HOME/var to store data, configurations, and logs. You can override this with the --base_dir flag:
Commands
start
Start a YugabyteDB node and optionally join an existing cluster.Common Flags
| Flag | Description |
|---|---|
--advertise_address | IP address to advertise to other nodes |
--base_dir | Base directory for data, logs, and configuration |
--cloud_location | Cloud location in format cloud.region.zone |
--join | Join existing cluster at specified address |
--listen | (Deprecated) Use --advertise_address instead |
--master_flags | Additional flags for yb-master |
--tserver_flags | Additional flags for yb-tserver |
--master_webserver_port | Master web server port (default: 7000) |
--tserver_webserver_port | TServer web server port (default: 9000) |
--ysql_port | YSQL port (default: 5433) |
--ycql_port | YCQL port (default: 9042) |
--background | Run in background mode (default: true) |
--ui | Enable yugabyted UI (default: true) |
Security Flags
| Flag | Description |
|---|---|
--secure | Enable TLS/SSL encryption |
--insecure | Start in insecure mode |
--certs_dir | Directory containing TLS certificates |
--ysql_enable_auth | Enable YSQL authentication |
--use_cassandra_authentication | Enable YCQL authentication |
Advanced Flags
| Flag | Description |
|---|---|
--fault_tolerance | Fault tolerance level: none, zone, region |
--rf | Replication factor (default: 3) |
--read_replica | Start as read replica node |
--backup_daemon | Enable backup daemon |
--callhome | Enable telemetry (default: true) |
--enhance_time_sync_via_clockbound | Use clockbound for time synchronization |
--initial_scripts_dir | Directory with initialization scripts |
Examples
stop
Stop a running YugabyteDB node.Flags
| Flag | Description |
|---|---|
--base_dir | Base directory of the node to stop |
Example
destroy
Destroy a YugabyteDB cluster and remove all data.Flags
| Flag | Description |
|---|---|
--base_dir | Base directory of the node to destroy |
Example
status
Print the status of a YugabyteDB cluster.Example Output
version
Display the YugabyteDB version.configure
Configure cluster settings for data placement, encryption, admin operations, and PITR.configure data_placement
Configure multi-zone or multi-region data placement.Flags
| Flag | Description |
|---|---|
--fault_tolerance | Fault tolerance level: zone or region |
--constraint_value | Data placement constraint |
--rf | Replication factor |
--base_dir | Base directory |
Example
configure encrypt_at_rest
Enable or disable encryption at rest.Examples
configure admin_operation
Execute yb-admin commands on the cluster.Flags
| Flag | Description |
|---|---|
--command | yb-admin command to execute |
--master_addresses | Comma-separated master addresses |
Example
configure point_in_time_recovery
Configure point-in-time recovery for databases or keyspaces.Flags
| Flag | Description |
|---|---|
--enable | Enable PITR |
--disable | Disable PITR |
--database | YSQL database name |
--keyspace | YCQL keyspace name |
--retention | Retention period in days |
--status | Display PITR status |
Examples
configure_read_replica
Configure, modify, or delete read replica clusters.configure_read_replica new
Create a new read replica cluster.configure_read_replica modify
Modify an existing read replica cluster.configure_read_replica delete
Delete a read replica cluster.backup
Back up a YugabyteDB database to cloud storage or network file system.Flags
| Flag | Description |
|---|---|
--database | YSQL database to backup |
--keyspace | YCQL keyspace to backup |
--cloud_storage_uri | S3, GCS, Azure, or NFS path |
--status | Check backup task status |
--base_dir | Base directory |
Examples
restore
Restore a YugabyteDB database from cloud storage or perform point-in-time recovery.Flags
| Flag | Description |
|---|---|
--database | YSQL database to restore |
--keyspace | YCQL keyspace to restore |
--cloud_storage_uri | S3, GCS, Azure, or NFS path |
--recover_to_point_in_time | Timestamp for PITR |
--status | Check restore task status |
--base_dir | Base directory |
Examples
connect
Connect to the YugabyteDB cluster using YSQL or YCQL shell.connect ysql
Connect using ysqlsh.Flags
| Flag | Description |
|---|---|
--username | YSQL username |
--password | YSQL password |
--database | Database name |
--base_dir | Base directory |
Example
connect ycql
Connect using ycqlsh.Flags
| Flag | Description |
|---|---|
--username | YCQL username |
--password | YCQL password |
--keyspace | Keyspace name |
--base_dir | Base directory |
Example
demo
Load and interact with preset demo data.demo connect
Connect to a demo database with sample data.demo destroy
Destroy the demo database.cert
Generate TLS/SSL certificates for secure clusters.cert generate_server_certs
Generate server certificates for cluster nodes.Example
collect_logs
Collect and package logs for troubleshooting.Flags
| Flag | Description |
|---|---|
--stdout | Output logs to stdout (for Docker) |
--collect_at_dir | Directory to store logs.tar.gz |
--base_dir | Base directory |
Examples
upgrade
Upgrade YugabyteDB nodes to a new version.upgrade ysql_catalog
Upgrade YSQL catalog metadata.upgrade finalize_new_version
Finalize the upgrade to the new version.upgrade check_version_compatibility
Check version compatibility before upgrading.finalize_upgrade
Finalize the upgrade process for the cluster.xcluster
Setup and manage xCluster replication between clusters.xcluster create_checkpoint
Initialize xCluster replication (run on source cluster).Flags
| Flag | Description |
|---|---|
--replication_id | Unique replication identifier |
--databases | Comma-separated database names |
--automatic_mode | Setup in automatic mode |
Example
xcluster add_to_checkpoint
Add databases to an existing xCluster checkpoint (run on source).xcluster set_up
Setup xCluster replication (run on source cluster).Flags
| Flag | Description |
|---|---|
--target_address | IP of target cluster node |
--replication_id | Replication ID from checkpoint |
--bootstrap_done | Indicate bootstrapping complete |
xcluster add_to_replication
Add databases to existing replication (run on source).xcluster status
Display xCluster replication status.xcluster delete_replication
Delete xCluster replication (run on source).xcluster remove_database_from_replication
Remove databases from replication (run on source).Environment Variables
| Variable | Description |
|---|---|
YB_DISABLE_CALLHOME | Disable telemetry (set to true) |
YSQL_PASSWORD | Default YSQL password |
YCQL_USER | Default YCQL username |
YCQL_PASSWORD | Default YCQL password |

