Skip to main content
Squirrels provides a command-line interface (CLI) for managing, testing, and running your project. The CLI is accessed through the sqrl command.

Usage format

sqrl [command] [positional-arguments] [options]

Available commands

CommandDescription
newCreate a new squirrels project
initCreate a new squirrels project in the current directory
get-fileGet a sample file for the squirrels project
depsLoad all packages specified in squirrels.yml
buildBuild the virtual data environment
compileCreate rendered SQL files
runRun the API server
duckdbRun the duckdb command line tool

Global options

All commands support the following common options:
OptionDescription
-h or --helpShow help message of the command and exit
--log-level {DEBUG,INFO,WARNING}Level of logging to use. Default is from SQRL_LOGGING__LOG_LEVEL environment variable or INFO.
--log-format {text,json}Format of the log records. Default is from SQRL_LOGGING__LOG_FORMAT environment variable or text.
--log-to-fileEnable logging to file(s) in the “logs/” folder with rotation and retention policies.

Getting help

To see help for any command, use the -h or --help option:
sqrl -h  # Show general help
sqrl <command> -h  # Show help for specific command

Check the version

To check the version of squirrels, use sqrl --version or sqrl -V:
sqrl --version