Install the complete package with local command reference and every published mode.
install sqlitesqliteUse
sqlite [options] · sqlite : <sql>sqliteshow the current
sqlite -c <file> [-f] [-m [name]]open an
-use <file>open another existing
-lshow attached database files
-tlist tables and views
-s <table>show columns and data types
-n <table> [rows]preview table rows
-f <table> <text> [rows]find text across table columns
-o <table> [-j|-csv] [file] [-f]export table rows
-a <table> : <json>insert one row from a JSON object
-w <table> <field> <value> : <json>update matching rows from a JSON object
-d <table> <field> <value>delete matching rows
-m [name]save the current database in .lil.key; default name is the file name
-M <name>remove a saved database
-k [name]list saved databases or inspect one
-K <name>open a saved database
-eclose the selected database file
sqlite : <sql>execute native SQL
sqlite load <file.sql>execute SQL from a file
sqlite dump [file.sql] [-f]create a schema and data dump
-c opens an existing file. Add -f to create a new
-l shows attached database files, -t lists tables/views, -s shows PRAGMA table_info, -n previews rows and -f searches text across one table. -a, -w and -d provide small JSON-based row edits; : remains available for complete SQL.
-o exports one table as JSON or CSV. dump creates a SQL schema/data script and load executes an SQL file.
Table export refuses more than 100000 rows instead of writing a partial file; the SQL dump remains the full schema-and-data backup path.
Without -m, connection data remains scoped to the current PHP session. -m [name] explicitly stores the current profile in the protected .lil.key file (0600), -K <name> reconnects from it, -k lists or inspects profiles without exposing a stored password, and -M <name> removes one. kill removes .lil.key together with the other core state. Treat the file as sensitive because an opted-in profile can contain database credentials.
Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.
Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.
Base and Minimum are two packages of the same current module release, not separate command versions.
Install the complete package with local command reference and every published mode.
install sqliteInstall the reduced package. Local reference is omitted;
install sqlite -mInstall exactly this published version.
install sqlite -v 1.1.4Ask upgrade to check compatibility and replace the installed block only when needed.
upgrade sqliteRemove the extension block while leaving the core and unrelated modules intact.
install sqlite -uExamples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.
cd \sandbox\db | sqlite -c shop.sqlite | sqlite -t | sqlite -n products 5mysql.sql
postgresql.sql
redis.txt
shop.sqlite
sqlite.sql
Status connected
File sandbox/db/shop.sqlite
SQLite 3.x
products
orders
id sku name category price active
1 SHOE-1 City shoe shoes 79.9 1
2 SHOE-2 Trail shoe shoes 109 1
3 BAG-1 Canvas bag bags 44.5 1shop.sqliteStatus connected
File sandbox/db/shop.sqlite
SQLite 3.xsqlite -s productsColumn Type Not null Key
id INTEGER no PRIMARY
sku TEXT yes UNIQUE
name TEXT yes
category TEXT yes
price REAL yes
active INTEGER yessqlite -f products "shoe" 20id sku name category price
1 SHOE-1 City shoe shoes 79.9
2 SHOE-2 Trail shoe shoes 109sqlite -o products -csv products.csvSaved products.csvsqlite -a products : {"sku":"BAG-1","name":"Travel bag","price":49.90}Inserted 1
ID 5sqlite -w products sku BAG-1 : {"price":44.90}Updated 1sqlite -d products sku BAG-1Deleted 1sqlite : SELECT category,COUNT(*) FROM products GROUP BY categorycategory COUNT(*)
accessories 1
bags 1
shoes 2sqlite dump shop-backup.sqlSaved shop-backup.sqlsqlite load \sandbox\db\sqlite.sql+sqlite -e+sqlite -c missing.sqliteDatabase file not foundsandbox/db/sqlite.sqlThe example uses a file or directory from the protected /sandbox/ documentation workspace.
CREATE TABLE products (
id INTEGER PRIMARY KEY,
sku TEXT UNIQUE NOT NULL,
name TEXT NOT NULL,
category TEXT NOT NULL,
price REAL NOT NULL,
active INTEGER NOT NULL DEFAULT 1
);
INSERT INTO products (sku,name,category,price,active) VALUES
('SHOE-1','City shoe','shoes',79.90,1),
('SHOE-2','Trail shoe','shoes',109.00,1),
('BAG-1','Canvas bag','bags',44.50,1);
Adds named .lil.key with explicit save, inspect, reopen and remove operations.