SledoView is a powerful, interactive Command Line Interface (CLI) tool designed for viewing, exploring, and editing SLED databases. It provides a rich REPL (Read-Eval-Print Loop) environment with full CRUD operations and multi-tree support.
Since SledoView is a CLI tool written in Rust, you will need the Rust toolchain installed on your system to build it from source.
- Rust 1.70+ (2021 edition)
- Cargo (included with Rust)
To build the optimized release version of the tool, run the following command in the root of the project:
cargo build --releaseThe compiled executable will be available in the target/release/ directory.
To install SledoView globally on your system so you can run it from anywhere in your terminal:
cargo install --path .(Alternatively, on Windows, you can use the provided development script: .\scripts\dev.ps1 install)
SledoView operates directly on the SLED database files on your disk. To connect to a database, simply pass the path to the database directory as an argument when launching the tool.
sledoview <path_to_database># Connect to a database located in the 'example_db' folder
sledoview ./example_dbOnce connected, SledoView will open an interactive prompt (sledoview>) where you can start typing commands to interact with your data.
SledoView provides a comprehensive set of commands to navigate and modify your database.
SLED databases can contain multiple isolated keyspaces called "trees".
| Command | Description | Example |
|---|---|---|
trees [pattern] |
List all trees (supports glob patterns) | trees or trees data_* |
trees regex <regex> |
List trees matching a regular expression | trees regex ^user_.* |
select <tree> |
Switch context to a specific tree | select settings |
unselect |
Return to the default (root) tree | unselect |
These commands operate on the currently selected tree.
| Command | Description | Example |
|---|---|---|
list [pattern] |
List keys (supports glob patterns) | list user_* |
list regex <regex> |
List keys matching a regular expression | list regex user_\d+ |
get <key> |
Retrieve the value and details of a specific key | get user_001 |
set <key> <value> |
Create a new key or update an existing one | set user_001 "John Doe" |
delete <key> |
Delete a key-value pair | delete user_001 |
CLI keys accept printable UTF-8 text, including non-ASCII characters such as config_日本 or café.
If a database already contains truly binary keys, SledoView can still read them with get <hex-suffix> by matching the trailing uppercase hex digits shown in key listings.
Binary keys remain read-only through the CLI.
| Command | Description | Example |
|---|---|---|
search <pattern> |
Search for values matching a glob pattern | search *@example.com |
search regex <regex> |
Search for values matching a regex | search regex \d{4}-\d{2}-\d{2} |
count |
Show the total number of records in the current tree | count |
| Command | Description | Example |
|---|---|---|
help |
Display the help menu with all available commands | help |
exit |
Safely close the database and exit SledoView | exit |
Known commands now validate their argument counts strictly. Extra trailing arguments are treated as usage errors instead of being ignored.
Tip: SledoView supports colored terminal output and tab-completion to make your database exploration as smooth as possible!