{"ok": true, "next": null, "rows": [{"id": "cli-reference:cli-datasette-get", "page": "cli-reference", "ref": "cli-datasette-get", "title": "datasette --get", "content": "The  --get  option to  datasette serve  (or just  datasette ) specifies the path to a page within Datasette and causes Datasette to output the content from that path without starting the web server. \n                 This means that all of Datasette's functionality can be accessed directly from the command-line. \n                 For example: \n                 datasette --get '/-/versions.json' | jq . \n                 {\n  \"python\": {\n    \"version\": \"3.8.5\",\n    \"full\": \"3.8.5 (default, Jul 21 2020, 10:48:26) \\n[Clang 11.0.3 (clang-1103.0.32.62)]\"\n  },\n  \"datasette\": {\n    \"version\": \"0.46+15.g222a84a.dirty\"\n  },\n  \"asgi\": \"3.0\",\n  \"uvicorn\": \"0.11.8\",\n  \"sqlite\": {\n    \"version\": \"3.32.3\",\n    \"fts_versions\": [\n      \"FTS5\",\n      \"FTS4\",\n      \"FTS3\"\n    ],\n    \"extensions\": {\n      \"json1\": null\n    },\n    \"compile_options\": [\n      \"COMPILER=clang-11.0.3\",\n      \"ENABLE_COLUMN_METADATA\",\n      \"ENABLE_FTS3\",\n      \"ENABLE_FTS3_PARENTHESIS\",\n      \"ENABLE_FTS4\",\n      \"ENABLE_FTS5\",\n      \"ENABLE_GEOPOLY\",\n      \"ENABLE_JSON1\",\n      \"ENABLE_PREUPDATE_HOOK\",\n      \"ENABLE_RTREE\",\n      \"ENABLE_SESSION\",\n      \"MAX_VARIABLE_NUMBER=250000\",\n      \"THREADSAFE=1\"\n    ]\n  }\n} \n                 You can use the  --token TOKEN  option to send an  API token  with the simulated request. \n                 Or you can make a request as a specific actor by passing a JSON representation of that actor to  --actor : \n                 datasette --memory --actor '{\"id\": \"root\"}' --get '/-/actor.json' \n                 The exit code of  datasette --get  will be 0 if the request succeeds and 1 if the request produced an HTTP status code other than 200 - e.g. a 404 or 500 error. \n                 This lets you use  datasette --get /  to run tests against a Datasette application in a continuous integration environment such as GitHub Actions.", "breadcrumbs": "[\"CLI reference\", \"datasette serve\"]", "references": "[]"}, {"id": "cli-reference:cli-datasette-serve-env", "page": "cli-reference", "ref": "cli-datasette-serve-env", "title": "Environment variables", "content": "Some of the  datasette serve  options can be provided by environment variables: \n                 \n                     \n                         DATASETTE_SECRET : Equivalent to the  --secret  option. \n                     \n                     \n                         DATASETTE_SSL_KEYFILE : Equivalent to the  --ssl-keyfile  option. \n                     \n                     \n                         DATASETTE_SSL_CERTFILE : Equivalent to the  --ssl-certfile  option. \n                     \n                     \n                         DATASETTE_LOAD_EXTENSION : Equivalent to the  --load-extension  option.", "breadcrumbs": "[\"CLI reference\", \"datasette serve\"]", "references": "[]"}, {"id": "cli-reference:cli-help-serve-help-settings", "page": "cli-reference", "ref": "cli-help-serve-help-settings", "title": "datasette serve --help-settings", "content": "This command outputs all of the available Datasette  settings . \n                 These can be passed to  datasette serve  using  datasette serve --setting name value . \n                 [[[cog\nhelp([\"--help-settings\"]) \n                 ]]] \n                 Settings:\n  default_page_size            Default page size for the table view\n                               (default=100)\n  max_returned_rows            Maximum rows that can be returned from a table or\n                               custom query (default=1000)\n  max_insert_rows              Maximum rows that can be inserted at a time using\n                               the bulk insert API (default=100)\n  num_sql_threads              Number of threads in the thread pool for\n                               executing SQLite queries (default=3)\n  sql_time_limit_ms            Time limit for a SQL query in milliseconds\n                               (default=1000)\n  default_facet_size           Number of values to return for requested facets\n                               (default=30)\n  facet_time_limit_ms          Time limit for calculating a requested facet\n                               (default=200)\n  facet_suggest_time_limit_ms  Time limit for calculating a suggested facet\n                               (default=50)\n  allow_facet                  Allow users to specify columns to facet using\n                               ?_facet= parameter (default=True)\n  allow_download               Allow users to download the original SQLite\n                               database files (default=True)\n  allow_signed_tokens          Allow users to create and use signed API tokens\n                               (default=True)\n  default_allow_sql            Allow anyone to run arbitrary SQL queries\n                               (default=True)\n  max_signed_tokens_ttl        Maximum allowed expiry time for signed API tokens\n                               (default=0)\n  suggest_facets               Calculate and display suggested facets\n                               (default=True)\n  default_cache_ttl            Default HTTP cache TTL (used in Cache-Control:\n                               max-age= header) (default=5)\n  cache_size_kb                SQLite cache size in KB (0 == use SQLite default)\n                               (default=0)\n  allow_csv_stream             Allow .csv?_stream=1 to download all rows\n                               (ignoring max_returned_rows) (default=True)\n  max_csv_mb                   Maximum size allowed for CSV export in MB - set 0\n                               to disable this limit (default=100)\n  truncate_cells_html          Truncate cells longer than this in HTML table\n                               view - set 0 to disable (default=2048)\n  force_https_urls             Force URLs in API output to always use https://\n                               protocol (default=False)\n  template_debug               Allow display of template debug information with\n                               ?_context=1 (default=False)\n  trace_debug                  Allow display of SQL trace debug information with\n                               ?_trace=1 (default=False)\n  base_url                     Datasette URLs should use this base path\n                               (default=/) \n                 [[[end]]]", "breadcrumbs": "[\"CLI reference\", \"datasette serve\"]", "references": "[]"}], "truncated": false}