YDB CLI commands

General syntax for calling YDB CLI commands:

1. ydb [global options] <command> [<subcommand> ...] [command options]

Structure of YDB CLI commands - 图1

, where:

  • ydb is the command to run the YDB CLI from the OS command line.
  • [global options] are global options that are common for all YDB CLI commands.
  • <command> is the command.
  • [<subcomand> ...] are subcommands specified if the selected command contains subcommands.
  • [command options] are command options specific to each command and subcommands.

Commands

You can learn about the necessary commands by selecting the subject section in the menu on the left or using the alphabetical list below.

Any command can be run from the command line with the --help option to get help on it. You can get a list of all supported YDB CLI of commands by running the YDB CLI with the --help option with no command specified.

Command / subcommand Brief description
config profile activate Activating a profile
config profile create Creating a profile
config profile delete Deleting a profile
config profile get Getting parameters of a profile
config profile list List of profiles
config profile set Activating a profile
discovery list List of endpoints
discovery whoami Authentication
export s3 Exporting data to S3 storage
import file csv Importing data from a CSV file
import file tsv Importing data from a TSV file
import s3 Importing data from S3 storage
init Initializing the CLI, creating a profile
operation cancel Aborting a background operation
operation forget Removing a background operation from history
operation get Background operation status
operation list List of background operations
scheme describe Description of a data schema object
scheme ls List of data schema objects
scheme mkdir Creating a directory
scheme permissions add Granting permissions
scheme permissions chown Changing the owner of an object
scheme permissions clear Clearing permissions
scheme permissions grant Granting permissions
scheme permissions remove Removing a permission
scheme permissions revoke Revoking a permission
scheme permissions set Setting permissions
scheme rmdir Deleting a directory
scripting yql Executing a YQL script
table attribute add Adding a table attribute
table attribute drop Deleting a table attribute
table drop Deleting a table
table index add global-async Adding an asynchronous index
table index add global-sync Adding a synchronous index
table index drop Deleting an index
table query execute Executing a YQL query
table query explain YQL query execution plan
table readtable Streaming table reads
table ttl drop Deleting TTL parameters
table ttl set Setting TTL parameters
tools copy Copying tables
tools dump Dumping a directory or table to the file system
tools rename Renaming tables
tools restore Restoring data from the file system

update | Updating the YDB CLI version | Displaying the version of the YDB CLI workload | Generating YQL load | Running a YQL script (with streaming support)