LinuxCommandLibrary

litecli

SQLite CLI with auto-completion

TLDR

Connect to database

$ litecli [database.db]
copy
Create new database
$ litecli [new.db]
copy
Execute query
$ litecli [database.db] -e "[SELECT * FROM table]"
copy
Use specific output format
$ litecli [database.db] --table
copy
Connect to in-memory database
$ litecli :memory:
copy
Run SQL file
$ litecli [database.db] < [script.sql]
copy

SYNOPSIS

litecli [options] [database]

DESCRIPTION

litecli is a SQLite CLI with auto-completion. It provides syntax highlighting and intelligent suggestions.
The tool offers a better interactive experience than sqlite3 with multiline editing and history.

PARAMETERS

DATABASE

SQLite database file path.
-e QUERY
Execute query and exit.
--table
Output as table.
--csv
Output as CSV.
-D FILE
Execute commands from file.
--help
Display help information.

CAVEATS

Python-based. Requires pip install. For SQLite databases only.

HISTORY

litecli was inspired by pgcli and mycli, bringing similar enhanced CLI features to SQLite.

SEE ALSO

sqlite3(1), mycli(1), pgcli(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community