CLI Reference
The SideSeat CLI starts the local workbench server and configures its behavior.
Installation
Section titled “Installation”# Global install (recommended)npm install -g sideseatsideseat
# One-off runnpx sideseatsideseat [OPTIONS] [COMMAND]Commands
Section titled “Commands”| Command | Description |
|---|---|
start | Start the server (default) |
system prune | Delete local data directory. Use -y to skip confirmation |
Running sideseat without a command is equivalent to sideseat start.
Options
Section titled “Options”Server Options
Section titled “Server Options”| Option | Env Variable | Default | Description |
|---|---|---|---|
-H, --host | SIDESEAT_HOST | 127.0.0.1 | Server host address |
-p, --port | SIDESEAT_PORT | 5388 | Server port |
--no-auth | - | false | Disable authentication |
--debug | SIDESEAT_DEBUG | false | Enable debug mode |
-c, --config | SIDESEAT_CONFIG | - | Config file path |
OTEL Options
Section titled “OTEL Options”| Option | Env Variable | Default | Description |
|---|---|---|---|
--otel-grpc | SIDESEAT_OTEL_GRPC_ENABLED | false | Enable gRPC endpoint |
--otel-grpc-port | SIDESEAT_OTEL_GRPC_PORT | 4317 | gRPC port |
--otel-retention-max-age | SIDESEAT_OTEL_RETENTION_MAX_AGE_MINUTES | (none) | Max age in minutes |
--otel-retention-max-spans | SIDESEAT_OTEL_RETENTION_MAX_SPANS | 5000000 | Max spans to retain |
--otel-auth-required | SIDESEAT_OTEL_AUTH_REQUIRED | false | Require auth for ingestion |
Database Options
Section titled “Database Options”| Option | Env Variable | Default | Description |
|---|---|---|---|
--analytics-backend | SIDESEAT_ANALYTICS_BACKEND | duckdb | duckdb or clickhouse |
--transactional-backend | SIDESEAT_TRANSACTIONAL_BACKEND | sqlite | sqlite or postgres |
--postgres-url | SIDESEAT_POSTGRES_URL | - | PostgreSQL connection URL |
--clickhouse-url | SIDESEAT_CLICKHOUSE_URL | - | ClickHouse connection URL |
Cache Options
Section titled “Cache Options”| Option | Env Variable | Default | Description |
|---|---|---|---|
--cache-backend | SIDESEAT_CACHE_BACKEND | memory | memory or redis |
--cache-max-entries | SIDESEAT_CACHE_MAX_ENTRIES | 10000 | Max cache entries |
--cache-eviction-policy | SIDESEAT_CACHE_EVICTION_POLICY | tinylfu | tinylfu or lru |
--cache-redis-url | SIDESEAT_CACHE_REDIS_URL | - | Redis connection URL |
Rate Limit Options
Section titled “Rate Limit Options”| Option | Env Variable | Default | Description |
|---|---|---|---|
--rate-limit-enabled | SIDESEAT_RATE_LIMIT_ENABLED | false | Enable rate limiting |
--rate-limit-per-ip | SIDESEAT_RATE_LIMIT_PER_IP | false | Enable per-IP limits |
--rate-limit-api-rpm | SIDESEAT_RATE_LIMIT_API_RPM | 1000 | API requests/minute |
--rate-limit-ingestion-rpm | SIDESEAT_RATE_LIMIT_INGESTION_RPM | 10000 | Ingestion requests/minute |
--rate-limit-auth-rpm | SIDESEAT_RATE_LIMIT_AUTH_RPM | 100 | Auth requests/minute |
Storage Options
Section titled “Storage Options”| Option | Env Variable | Default | Description |
|---|---|---|---|
--files-enabled | SIDESEAT_FILES_ENABLED | true | Enable file storage |
--files-storage | SIDESEAT_FILES_STORAGE | filesystem | filesystem or s3 |
--files-quota-bytes | SIDESEAT_FILES_QUOTA_BYTES | 1073741824 | Storage quota per project |
MCP Options
Section titled “MCP Options”| Option | Env Variable | Default | Description |
|---|---|---|---|
--mcp | SIDESEAT_MCP_ENABLED | true | Enable MCP server for AI agent access |
Other Options
Section titled “Other Options”| Option | Env Variable | Default | Description |
|---|---|---|---|
--pricing-sync-hours | SIDESEAT_PRICING_SYNC_HOURS | 24 | Pricing data sync interval (0 = disabled) |
--no-update-check | SIDESEAT_NO_UPDATE_CHECK | false | Disable update check on startup |
Examples
Section titled “Examples”Development
Section titled “Development”# Basic development serversideseat
# With debug outputsideseat --debug
# Disable authenticationsideseat --no-authCustom Port
Section titled “Custom Port”sideseat --port 8080
# Or via environmentSIDESEAT_PORT=8080 sideseatExternal Access
Section titled “External Access”# Allow connections from other machinessideseat --host 0.0.0.0Enable gRPC
Section titled “Enable gRPC”sideseat --otel-grpc --otel-grpc-port 4317Advanced: External Databases
Section titled “Advanced: External Databases”sideseat \ --host 0.0.0.0 \ --analytics-backend clickhouse \ --clickhouse-url http://clickhouse:8123 \ --transactional-backend postgres \ --postgres-url postgres://user:pass@postgres:5432/sideseat \ --cache-backend redis \ --cache-redis-url redis://redis:6379 \ --rate-limit-enabledSystem Commands
Section titled “System Commands”# Delete local data directory (with confirmation prompt)sideseat system prune
# Delete local data directory without confirmationsideseat system prune -yWith Config File
Section titled “With Config File”sideseat --config /path/to/sideseat.jsonConfiguration Priority
Section titled “Configuration Priority”Configuration is loaded from multiple sources with this priority (highest first):
- CLI arguments:
--port 8080 - Environment variables:
SIDESEAT_PORT=8080 - Working directory config:
./sideseat.json - User config:
~/.sideseat/sideseat.json - Defaults: Built-in values
Version and Help
Section titled “Version and Help”# Show versionsideseat --version
# Show helpsideseat --helpExit Codes
Section titled “Exit Codes”| Code | Description |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Configuration error |
Signals
Section titled “Signals”| Signal | Behavior |
|---|---|
SIGINT (Ctrl+C) | Graceful shutdown |
SIGTERM | Graceful shutdown |
SIGHUP | Reload configuration |
Next Steps
Section titled “Next Steps”- Configuration Schema — all configuration options
- API Reference — REST API documentation
- First Run — get started with SideSeat