litecli
CLI for SQLite Databases with auto-completion and syntax highlighting.
What it is and what it does
litecli is a terminal-based interface for SQLite that replaces the standard sqlite3 command-line tool with a more user-friendly experience. It adds auto-completion for SQL keywords and table names, syntax highlighting for queries, and configuration options to customize the interactive shell. The tool reads and writes a config file on first launch, storing user preferences for future sessions.
You run it by passing a SQLite database filename as an argument, and it opens an interactive prompt where you can type SQL queries. The auto-completion and syntax highlighting are powered by prompt-toolkit, pygments, and sqlparse—dependencies that handle terminal interaction, code highlighting, and SQL parsing respectively. It's useful for developers and DBAs who spend time querying SQLite databases interactively and want faster query entry and better readability.
Use it for:
- Interactive exploration of SQLite database schemas and data during development
- Quick ad-hoc queries without writing Python scripts or opening a GUI tool
- Teaching SQL or demonstrating database concepts with a modern, readable terminal interface
- Scripting or automation where a lightweight, scriptable CLI is preferable to heavier database tools
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A command-line client for SQLite databases with auto-completion and syntax highlighting, designed to make interactive database queries faster and more readable.
Yes. litecli is actively maintained, has low install friction, carries no known vulnerabilities, and solves a real problem for developers who work with SQLite interactively. The permissive BSD license poses no restrictions. Install it if you spend time querying SQLite from the command line.
Install
litecli on PyPI
pip
pip install litecliuv
uv add liteclipoetry
poetry add litecliInstalling litecli
Before you install
Low friction installation as a pure Python wheel with six common dependencies. Actively maintained with recent releases; last commit 2026-06-18 and latest release 2026-01-31 indicate ongoing development.
License in practice
BSD license is permissive, allowing commercial and private use with minimal restrictions.
Quickstart
pip install litecli
litecli mydb.sqlite
# Then use interactive shell with auto-completion and syntax highlighting
Requires Python 3.9 or later
Verify before relying
- Whether the optional sqlean extra adds significant capability or is primarily for advanced SQL functions
- Performance characteristics when working with large SQLite databases
Package facts
| License | BSD (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — cli-helpers, click, configobj, prompt-toolkit, pygments, sqlparse |
| Maintenance | actively maintained — 195 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 90,628/month — #13,570 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: litecli-1.17.1-py3-none-any.whl
Tags
More Front-Ends packages
SQLAlchemy is a Python SQL toolkit and Object…
permissive · top 100 on PyPI
psycopg2-binarypsycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
alembicAlembic generates and manages database schema…
permissive · top 1,000 on PyPI
weaviate-clientA Python client library for connecting to and…
permissive · top 1,000 on PyPI
databricks-sql-connectorA Python client library that connects to…
permissive · top 1,000 on PyPI
psycopgPsycopg 3 is a PostgreSQL database adapter for…
copyleft · top 1,000 on PyPI
myclimycli is a command-line client for MySQL and…
permissive · top 15,000 on PyPI
pgclipgcli is a command-line interface for…
permissive · top 15,000 on PyPI
libsql-experimentalPython client library for Turso, a…
unclear · top 15,000 on PyPI
sqlite-utilsCLI tool and Python library for creating,…
permissive · top 5,000 on PyPI
datasetteDatasette is a web server and CLI tool that…
permissive · top 15,000 on PyPI
pgspecialExecutes PostgreSQL meta-commands (backslash…
permissive · top 15,000 on PyPI
anysqliteAnysqlite wraps SQLite with an async/await…
unclear · top 5,000 on PyPI
mysqlclientmysqlclient provides a Python interface to…
copyleft · top 1,000 on PyPI
aiosqliteaiosqlite provides an async interface to SQLite…
permissive · top 1,000 on PyPI
llmLLM is a CLI tool and Python library for…
permissive · top 15,000 on PyPI