run command starts the API server that serves your datasets, dashboards, and routes.
Usage
Options
In addition to the global options, this command supports the following options:| Option | Description |
|---|---|
--build | Build the VDL first (without full refresh) before starting the server |
--no-cache | Do not cache any API results |
--host HOST | Host interface to bind to (default: 127.0.0.1) |
--port PORT | Port to bind to (default: 4465) |
Examples
Start the server:Notes
- The
--buildoption can be useful for deployment processes. Outside of deployment, avoid using it if there are no changes to the sources, seeds, or build models. - Use the following environment variable settings to control the caching behavior.
SQRL_PARAMETERS__CACHE_SIZESQRL_PARAMETERS__CACHE_TTL_MINUTESSQRL_DATASETS__CACHE_SIZESQRL_DATASETS__CACHE_TTL_MINUTESSQRL_DASHBOARDS__CACHE_SIZESQRL_DASHBOARDS__CACHE_TTL_MINUTES