Dot Commands
Dot commands control the shell's behavior. They start with a . and do not require a trailing semicolon.
Output Format
.mode <format>
Set the result output format. See Output Formats for details.
With no argument, prints the current mode.
.headers <on|off>
Show or hide the header row in results. Default: on.
.nullvalue <string>
Set the display string for NULL values. Default: empty string.
.separator <col>
Set the column separator used in list and csv modes. Default: ,.
.maxrows <n>
Limit the number of rows displayed. 0 means unlimited (default).
.width <n>
Set the minimum column display width in table, box, and column modes. 0 means automatic (default).
File Redirection
.output [file]
Redirect all subsequent query results to a file. Call with no argument to revert to stdout.
TurboLynx >> .output results.csv
TurboLynx >> .mode csv
TurboLynx >> MATCH (n:Person) RETURN n.firstName;
TurboLynx >> .output
Output: stdout
.once <file>
Redirect the next query result only to a file, then automatically revert to stdout.
TurboLynx >> .once snapshot.json
TurboLynx >> .mode json
TurboLynx >> MATCH (n:Person) RETURN n LIMIT 10;
.log [file]
Append all executed queries and their timing to a log file. Call with no argument to stop logging.
Log format:
Schema Inspection
.tables
List all vertex labels and edge types in the current graph.
TurboLynx >> .tables
Vertex labels (4):
Person
Comment
Post
Forum
Edge types (3):
KNOWS
LIKES
HAS_CREATOR
.schema <label|type>
Show the property schema (column names and types) for a vertex label or edge type.
TurboLynx >> .schema Person
Vertex label: Person
graphlets: 1
columns:
id BIGINT
firstName VARCHAR
lastName VARCHAR
birthday DATE
creationDate TIMESTAMP
.indexes
Show index information. (Not yet implemented — stub for future use.)
Execution
.read <file>
Execute Cypher queries and dot commands from a file. Queries must end with ;; dot commands do not.
Example script (script.cypher):
.analyze
Rebuild column statistics (histograms) for the cost-based optimizer. Run this after loading data or making significant schema changes.
.timer <on|off>
Toggle query timing display. Default: on.
TurboLynx >> .timer off
TurboLynx >> .timer on
Time: compile 12.1 ms, execute 34.5 ms, total 46.6 ms
.echo <on|off>
Print each query to stdout before executing it. Useful when running scripts with .read. Default: off.
.bail <on|off>
Stop execution on the first error when running a script via .read. Default: off.
.profile <on|off>
Print a detailed query execution profile after each query. When enabled, the profiler reports time spent in each pipeline stage. Default: off.
TurboLynx >> .profile on
Profile: on
TurboLynx >> MATCH (n:Person) RETURN count(n);
┌──────────┐
│ count(n) │
├──────────┤
│ 92000 │
└──────────┘
Query Profile:
Pipeline 0 [Scan → Aggregate] 42.3 ms
Total: 42.3 ms
TurboLynx >> .profile off
Profile: off
Note: Profiling adds a small overhead. Disable it for benchmarking with
.profile off.
Shell
.shell <command> / .system <command>
Execute an OS shell command.
.print <text>
Print literal text. Useful in scripts.
.prompt <string>
Change the shell prompt.
.show
Display all current shell settings.
TurboLynx >> .show
Current settings:
mode: box
headers: on
nullvalue: ""
separator: ","
maxrows: unlimited
width: auto
output: stdout
log: off
timer: on
echo: off
bail: off
prompt: "TurboLynx"
workspace: /path/to/db
.help
Print the built-in command reference.
.exit / .quit / :exit
Exit the shell.
Quick Reference
| Command | Description |
|---|---|
.mode <fmt> |
Set output format |
.headers <on\|off> |
Toggle header row |
.nullvalue <str> |
NULL display string |
.separator <col> |
Column separator |
.maxrows <n> |
Limit output rows |
.width <n> |
Minimum column width |
.output [file] |
Redirect all output |
.once <file> |
Redirect next result only |
.log [file] |
Log queries to file |
.tables |
List labels and edge types |
.schema <name> |
Show property schema |
.read <file> |
Execute script file |
.analyze |
Rebuild statistics |
.timer <on\|off> |
Toggle timing |
.echo <on\|off> |
Echo queries |
.bail <on\|off> |
Stop on error |
.profile <on\|off> |
Print execution profile |
.shell <cmd> |
Run OS command |
.print <text> |
Print text |
.prompt <str> |
Change prompt |
.show |
Show all settings |
.help |
Show help |
.exit / .quit |
Exit |