---
title: "Configuration"
description: "Global CLI options, environment variables, and deployment configuration."
canonical_url: "https://kinfe123-sqlite-studio-docs-cloud-cr2t7cant-farming-labs.vercel.app/docs/configuration"
markdown_url: "https://kinfe123-sqlite-studio-docs-cloud-cr2t7cant-farming-labs.vercel.app/docs/configuration.md"
last_updated: "2018-10-20"
---

# Configuration
URL: /docs/configuration
LLM index: /llms.txt
Description: Global CLI options, environment variables, and deployment configuration.

# Configuration

All global options must be placed **before** the database subcommand. The general command shape is:

```bash
sql-studio [OPTIONS] <SUBCOMMAND> [ARGS...]
```

Every option also has a corresponding environment variable, so you can configure SQL Studio entirely through your shell environment when running in Docker or CI.

## Global Options

| Option | Short | Description | Default | Env Var |
|--------|-------|-------------|---------|---------|
| `--address` | `-a` | Address and port to bind to | `127.0.0.1:3030` | `ADDRESS` |
| `--timeout` | `-t` | Timeout for queries from the query page | `5secs` | `TIMEOUT` |
| `--base-path` | `-b` | Base URL path for the UI (e.g. `/sql-studio`) | _(none)_ | `BASE_PATH` |
| `--no-browser` | | Don't open the URL in the system browser | `false` | `NO_BROWSER` |
| `--no-shutdown` | | Don't show the shutdown button in the UI | `false` | `NO_SHUTDOWN` |

## Timeout Format

The `--timeout` value accepts human-readable durations. `5secs`, `30secs`, `1min`, and `2min 30secs` are all valid. The timeout applies to queries executed from the Query page — it has no effect on schema or table browsing.

## Binding to a Custom Address

By default SQL Studio only listens on `127.0.0.1`. To expose it on your local network or inside a container, pass a different address:

```bash
sql-studio --address=0.0.0.0:8080 sqlite ./my.db
```

## Base Path

If you're serving SQL Studio behind a reverse proxy under a sub-path, set `--base-path` so the UI generates correct asset and navigation URLs:

```bash
sql-studio --base-path=/sql-studio sqlite ./my.db
```

## Deployment Flags

When running in headless environments such as Docker or a remote server, combine `--no-browser` and `--no-shutdown` to prevent the binary from opening a browser and to keep the process alive after the UI's shutdown button would otherwise terminate it:

```bash
sql-studio --no-browser --no-shutdown --address=0.0.0.0:3030 postgres postgres://...
```

## Environment Variable

- `RUST_LOG` — controls the verbosity of server-side log output. Set it to `debug` or `info` to see request logs and diagnostic messages from the binary.

```bash
export RUST_LOG=info
sql-studio sqlite ./my.db
```

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
Docs-scoped sitemap: [/docs/sitemap.md](/docs/sitemap.md).
Well-known sitemap: [/.well-known/sitemap.md](/.well-known/sitemap.md).
