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.
|
2021-02-18 10:27:12 -08:00
|
|
|
-p, --port INTEGER RANGE Port for server, defaults to 8001. Use -p 0 to automatically
|
2021-06-01 09:16:58 -07:00
|
|
|
assign an available port. [0<=x<=65535]
|
2021-07-10 16:37:30 -07:00
|
|
|
--uds TEXT Bind to a Unix domain socket
|
2021-04-02 13:20:51 -07:00
|
|
|
--reload Automatically reload if code or metadata change detected -
|
2018-12-20 07:51:08 -08:00
|
|
|
useful for development
|
2018-07-24 09:00:10 -07:00
|
|
|
--cors Enable CORS by serving Access-Control-Allow-Origin: *
|
2020-10-19 17:33:04 -07:00
|
|
|
--load-extension TEXT 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/...
|
2021-01-28 14:48:56 -08:00
|
|
|
--memory Make /_memory database available
|
2020-11-24 12:01:47 -08:00
|
|
|
--config CONFIG Deprecated: set config option using configname:value. Use
|
|
|
|
|
--setting instead.
|
|
|
|
|
--setting SETTING... Setting, see docs.datasette.io/en/stable/config.html
|
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
|
2020-08-11 17:24:40 -07:00
|
|
|
--get TEXT Run an HTTP GET request against this path, print results and
|
|
|
|
|
exit
|
2018-07-10 19:04:13 -07:00
|
|
|
--version-note TEXT Additional note to show on /-/versions
|
2021-08-12 18:01:57 -07:00
|
|
|
--help-settings Show available settings
|
2020-09-11 11:37:55 -07:00
|
|
|
--pdb Launch debugger on any errors
|
2020-09-22 07:26:47 -07:00
|
|
|
-o, --open Open Datasette in your web browser
|
2020-12-09 11:45:45 -08:00
|
|
|
--create Create database files if they do not exist
|
2021-02-18 14:09:12 -08:00
|
|
|
--crossdb Enable cross-database joins using the /_memory database
|
2021-02-11 16:52:16 -08:00
|
|
|
--ssl-keyfile TEXT SSL key file
|
|
|
|
|
--ssl-certfile TEXT SSL certificate file
|
2018-07-10 19:04:13 -07:00
|
|
|
--help Show this message and exit.
|