First CLI command: sqlite-utils table_names test.db

This commit is contained in:
Simon Willison 2019-01-24 19:30:47 -08:00
commit fd5829b27d
4 changed files with 60 additions and 3 deletions

17
docs/cli.rst Normal file
View file

@ -0,0 +1,17 @@
.. _python_api:
================================
sqlite-utils command-line tool
================================
The ``sqlite-utils`` command-line tool can be used to manipulate SQLite databases in a number of different ways.
Listing tables
==============
You can list the names of tables in a database using the ``table_names`` subcommand::
$ sqlite-utils table_names mydb.db
dogs
cats
chickens