List of objects
where [connection options] are database connection options
Executing the command without parameters produces a compressed list of object names in the database’s root directory.
In the path
parameter, you can specify the you want to list objects in.
-l
: Full details about attributes of each object-R
: Recursive traversal of all subdirectories
Examples
The examples use a profile named . For information about how to create it, see the Getting started with the YDB CLI article in the “Getting started “ section.
- Getting objects from the root database directory in a compressed format
ydb --profile db1 scheme ls
- Getting objects in all database directories in a compressed format
- Getting objects from the given database directory in a compressed format
- Getting objects in all subdirectories in the given directory in a compressed format
ydb --profile db1 scheme ls dir1 -R
- Getting complete information on objects in the root database directory
- Getting complete information about objects in a given database directory
- Getting complete information about objects in all database directories
ydb --profile db1 scheme ls -lR
- Getting complete information on objects in all subdirectories of a given database directory
ydb --profile db1 scheme ls dir1 -lR