kopia lustrzana https://github.com/simonw/datasette
45 wiersze
2.2 KiB
Plaintext
45 wiersze
2.2 KiB
Plaintext
$ datasette serve --help
|
|
|
|
Usage: datasette serve [OPTIONS] [FILES]...
|
|
|
|
Serve up specified SQLite database files with a web UI
|
|
|
|
Options:
|
|
-i, --immutable PATH Database files to open in immutable mode
|
|
-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.
|
|
|
|
-p, --port INTEGER Port for server, defaults to 8001. Use -p 0 to automatically
|
|
assign an available port.
|
|
|
|
--reload Automatically reload if database or code change detected -
|
|
useful for development
|
|
|
|
--cors Enable CORS by serving Access-Control-Allow-Origin: *
|
|
--load-extension TEXT Path to a SQLite extension to load
|
|
--inspect-file TEXT Path to JSON file created using "datasette inspect"
|
|
-m, --metadata FILENAME Path to JSON/YAML file containing license/source metadata
|
|
--template-dir DIRECTORY Path to directory containing custom templates
|
|
--plugins-dir DIRECTORY Path to directory containing custom plugins
|
|
--static MOUNT:DIRECTORY Serve static files from this directory at /MOUNT/...
|
|
--memory Make :memory: database available
|
|
--config CONFIG Deprecated: set config option using configname:value. Use
|
|
--setting instead.
|
|
|
|
--setting SETTING... Setting, see docs.datasette.io/en/stable/config.html
|
|
--secret TEXT Secret used for signing secure values, such as signed
|
|
cookies
|
|
|
|
--root Output URL that sets a cookie authenticating the root user
|
|
--get TEXT Run an HTTP GET request against this path, print results and
|
|
exit
|
|
|
|
--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
|
|
--create Create database files if they do not exist
|
|
--help Show this message and exit.
|