New -o option for opening Datasette in your browser, closes #970

This commit is contained in:
Simon Willison 2020-09-22 07:26:47 -07:00
commit a980199e61
4 changed files with 15 additions and 1 deletions

View file

@ -39,4 +39,5 @@ Options:
--version-note TEXT Additional note to show on /-/versions
--help-config Show available config options
--pdb Launch debugger on any errors
-o, --open Open Datasette in your web browser
--help Show this message and exit.

View file

@ -47,6 +47,10 @@ First, follow the :ref:`installation` instructions. Now you can run Datasette ag
This will start a web server on port 8001 - visit http://localhost:8001/
to access the web interface.
Add ``-o`` to open your browser automatically once Datasette has started::
datasette path/to/database.db -o
Use Chrome on OS X? You can run datasette against your browser history
like so: