Skip to main content
Version: 0.5.x

sqrl run

The run command starts the Squirrels API server, making your datasets available through REST API endpoints.

Usage

sqrl run [options]

Options

OptionDescription
--buildBuild the virtual data environment (with DuckDB) first before running the API server
--no-cacheDo not cache any API results
--hostThe host to run on. Default is 127.0.0.1
--portThe port to run on. Default is 4465

Description

The run command:

  1. Optionally builds the virtual data environment if --build is specified
  2. Starts a FastAPI server
  3. Makes all configured datasets available through REST endpoints
  4. Enables parameter-based querying of your data
  5. Provides API documentation at /docs and /redoc

Examples

Start the server with default settings:

sqrl run

Start the server on a specific host and port:

sqrl run --host 0.0.0.0 --port 8080

Build and then run the server:

sqrl run --build

Run without caching:

sqrl run --no-cache

Notes

  • The server runs on 127.0.0.1:4465 by default
  • Use --host 0.0.0.0 to make the server accessible from other machines
  • The --build option ensures your data is up to date before starting
  • Caching improves performance but may show stale data. Cache size and TTL can be configured with environment variables
  • The server uses FastAPI, providing automatic API documentation