skillfed

litecli

CLI for SQLite Databases with auto-completion and syntax highlighting.

litecli v1.17.1 90.6K downloads/30d#13,570 on PyPI3,290
Permissive license BSD Active released

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 litecli

uv

uv add litecli

poetry

poetry add litecli

Installing 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

sqlite command line clientsqlite cli with autocompleteinteractive sqlite shellsqlite database terminalsqlite syntax highlightinglitecli sqlite repl
cli-toolsqliterepl

More Front-Ends packages