2018-07-11 02:04:13 +00:00
|
|
|
$ datasette serve --help
|
|
|
|
|
2018-07-24 16:03:07 +00:00
|
|
|
Usage: datasette serve [OPTIONS] [FILES]...
|
2018-07-11 02:04:13 +00:00
|
|
|
|
|
|
|
Serve up specified SQLite database files with a web UI
|
|
|
|
|
|
|
|
Options:
|
2019-03-17 23:25:15 +00:00
|
|
|
-i, --immutable PATH Database files to open in immutable mode
|
2019-11-01 21:57:49 +00:00
|
|
|
-h, --host TEXT Host for server. Defaults to 127.0.0.1 which means only
|
|
|
|
connections from the local machine will be allowed. Use
|
|
|
|
0.0.0.0 to listen to all IPs and allow access from other
|
|
|
|
machines.
|
2020-03-22 01:31:49 +00:00
|
|
|
|
2019-12-22 15:42:30 +00:00
|
|
|
-p, --port INTEGER Port for server, defaults to 8001. Use -p 0 to automatically
|
|
|
|
assign an available port.
|
2020-03-22 01:31:49 +00:00
|
|
|
|
2018-07-11 02:04:13 +00:00
|
|
|
--debug Enable debug mode - useful for development
|
2018-12-20 15:51:08 +00:00
|
|
|
--reload Automatically reload if database or code change detected -
|
|
|
|
useful for development
|
2020-03-22 01:31:49 +00:00
|
|
|
|
2018-07-24 16:00:10 +00:00
|
|
|
--cors Enable CORS by serving Access-Control-Allow-Origin: *
|
2018-07-11 02:04:13 +00:00
|
|
|
--load-extension PATH Path to a SQLite extension to load
|
2018-07-24 16:00:10 +00:00
|
|
|
--inspect-file TEXT Path to JSON file created using "datasette inspect"
|
2020-04-02 19:30:53 +00:00
|
|
|
-m, --metadata FILENAME Path to JSON/YAML file containing license/source metadata
|
2018-07-11 02:04:13 +00:00
|
|
|
--template-dir DIRECTORY Path to directory containing custom templates
|
|
|
|
--plugins-dir DIRECTORY Path to directory containing custom plugins
|
2019-11-26 02:31:42 +00:00
|
|
|
--static MOUNT:DIRECTORY Serve static files from this directory at /MOUNT/...
|
2019-03-14 23:42:38 +00:00
|
|
|
--memory Make :memory: database available
|
2018-07-11 02:04:13 +00:00
|
|
|
--config CONFIG Set config option using configname:value
|
2020-08-15 23:57:05 +00:00
|
|
|
docs.datasette.io/en/stable/config.html
|
2020-03-22 01:31:49 +00:00
|
|
|
|
2020-05-31 22:42:08 +00:00
|
|
|
--secret TEXT Secret used for signing secure values, such as signed
|
|
|
|
cookies
|
|
|
|
|
2020-06-01 01:03:17 +00:00
|
|
|
--root Output URL that sets a cookie authenticating the root user
|
2020-08-12 00:24:40 +00:00
|
|
|
--get TEXT Run an HTTP GET request against this path, print results and
|
|
|
|
exit
|
|
|
|
|
2018-07-11 02:04:13 +00:00
|
|
|
--version-note TEXT Additional note to show on /-/versions
|
|
|
|
--help-config Show available config options
|
2020-09-11 18:37:55 +00:00
|
|
|
--pdb Launch debugger on any errors
|
2020-09-22 14:26:47 +00:00
|
|
|
-o, --open Open Datasette in your web browser
|
2018-07-11 02:04:13 +00:00
|
|
|
--help Show this message and exit.
|