2018-07-10 19:04:13 -07:00
|
|
|
$ datasette serve --help
|
|
|
|
|
|
2018-07-24 09:03:07 -07:00
|
|
|
Usage: datasette serve [OPTIONS] [FILES]...
|
2018-07-10 19:04:13 -07:00
|
|
|
|
|
|
|
|
Serve up specified SQLite database files with a web UI
|
|
|
|
|
|
|
|
|
|
Options:
|
2019-03-17 16:25:15 -07:00
|
|
|
-i, --immutable PATH Database files to open in immutable mode
|
2019-11-01 14:57:49 -07: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-21 18:31:49 -07: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-21 18:31:49 -07:00
|
|
|
|
2018-07-10 19:04:13 -07:00
|
|
|
--debug Enable debug mode - useful for development
|
2018-12-20 07:51:08 -08:00
|
|
|
--reload Automatically reload if database or code change detected -
|
|
|
|
|
useful for development
|
2020-03-21 18:31:49 -07:00
|
|
|
|
2018-07-24 09:00:10 -07:00
|
|
|
--cors Enable CORS by serving Access-Control-Allow-Origin: *
|
2018-07-10 19:04:13 -07:00
|
|
|
--load-extension PATH Path to a SQLite extension to load
|
2018-07-24 09:00:10 -07:00
|
|
|
--inspect-file TEXT Path to JSON file created using "datasette inspect"
|
2020-04-02 12:30:53 -07:00
|
|
|
-m, --metadata FILENAME Path to JSON/YAML file containing license/source metadata
|
2018-07-10 19:04:13 -07:00
|
|
|
--template-dir DIRECTORY Path to directory containing custom templates
|
|
|
|
|
--plugins-dir DIRECTORY Path to directory containing custom plugins
|
2019-11-25 18:31:42 -08:00
|
|
|
--static MOUNT:DIRECTORY Serve static files from this directory at /MOUNT/...
|
2019-03-14 16:42:38 -07:00
|
|
|
--memory Make :memory: database available
|
2018-07-10 19:04:13 -07:00
|
|
|
--config CONFIG Set config option using configname:value
|
|
|
|
|
datasette.readthedocs.io/en/latest/config.html
|
2020-03-21 18:31:49 -07:00
|
|
|
|
2020-05-31 15:42:08 -07:00
|
|
|
--secret TEXT Secret used for signing secure values, such as signed
|
|
|
|
|
cookies
|
|
|
|
|
|
2020-05-31 18:03:17 -07:00
|
|
|
--root Output URL that sets a cookie authenticating the root user
|
2018-07-10 19:04:13 -07:00
|
|
|
--version-note TEXT Additional note to show on /-/versions
|
|
|
|
|
--help-config Show available config options
|
|
|
|
|
--help Show this message and exit.
|