Skip to main content

Command-Line Options

Arguments

Examples

Options

-m, --output-mode <MODE>

Set the output display format.

-o, --output <PATH>

Redirect query output to a file instead of stdout.

-q, --quiet

Suppress the startup banner and version information.

-e, --echo

Print each SQL statement before executing it. Useful for debugging scripts.

-v, --vfs <VFS>

Select the Virtual File System backend.

-t, --tracing-output <PATH>

Write internal log traces to a file. Useful for debugging and performance analysis.

--readonly

Open the database in read-only mode. Write operations will return an error.
Attempting to write in read-only mode:

--mcp

Start a Model Context Protocol server instead of the interactive shell. This allows AI assistants and other MCP clients to interact with the database via JSON-RPC.

--sync-server <ADDRESS>

Start a sync server for database replication, listening at the given address.

Experimental Feature Flags

These flags enable features that are still under development. They may change or be removed in future releases.
Experimental features may have incomplete implementations or known limitations. Use them for testing and development only.
Triggers (CREATE TRIGGER / DROP TRIGGER) are stable as of Turso 0.7 and no longer require a flag.

Other Flags