| Crates.io | vapor-cli |
| lib.rs | vapor-cli |
| version | 0.0.5 |
| created_at | 2025-06-07 23:39:45.265324+00 |
| updated_at | 2025-06-13 01:06:49.880197+00 |
| description | A command-line interface for SQLite database management with enhanced features for data manipulation, querying, and testing |
| homepage | |
| repository | https://github.com/ooyeku/vapor-cli |
| max_upload_size | |
| id | 1704497 |
| size | 206,583 |
Vapor CLI is a powerful, interactive command-line interface for SQLite databases. It's designed to be a lightweight, fast, and user-friendly tool for developers, data analysts, and anyone who works with SQLite. Vapor CLI combines the power of a direct SQL interface with the convenience of a modern shell and data management utilities.
BEGIN, COMMIT, ROLLBACK) within the REPL.Clone the repository:
git clone https://github.com/ooyeku/vapor-cli.git
cd vapor-cli
Build the project using Cargo:
cargo build --release
The executable will be located at target/release/vapor-cli.
(Optional) Install it locally:
To make vapor-cli available from anywhere in your system, you can install it using Cargo:
cargo install --path .
Create a new, empty SQLite database file.
vapor-cli init --name my_database.db
Check the connection to an existing database file.
vapor-cli connect --path my_database.db
Start an interactive SQL Read-Eval-Print Loop to run queries against a database.
vapor-cli repl --db-path my_database.db
Inside the REPL, you can type SQL statements or use special dot-commands:
-- Select all users
SELECT * FROM users;
-- Special commands
.tables
.schema users
.exit
Start an interactive shell session with the database context loaded.
vapor-cli shell --db-path my_database.db
From the shell, you can run system commands or switch back to the REPL:
# List files
ls -l
# Switch back to the REPL
.vrepl
Create a new table:
vapor-cli create-table --db-path my_database.db --name users --columns "id INTEGER PRIMARY KEY, name TEXT"
List all tables in the database:
vapor-cli list-tables --db-path my_database.db
Populate the database with a large amount of sample data for testing purposes.
vapor-cli populate --db-path my_database.db
Vapor CLI stores its configuration and history in ~/.config/vapor/.
The tool automatically creates and manages:
.vapor_history~/.vapor_bookmarks.json.db extensionThe tool provides detailed error messages and suggestions for common issues: