Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CLI Reference

The SynDB CLI (syndb) provides command-line access to all platform features.

Installation

# With GUI
pipx install syndb-cli[gui]

# Without GUI
pipx install syndb-cli

Global Options

OptionEnvironment VariableDescription
--server-urlSYNDB_SERVER_URLAPI base URL
--flight-urlSYNDB_FLIGHT_URLArrow Flight endpoint
--flight-portSYNDB_FLIGHT_PORTArrow Flight port

Commands

user — Account Management

CommandDescription
syndb user registerCreate a new account
syndb user loginAuthenticate and store token
syndb user logoutRevoke token

query — Saved Queries

CommandDescription
syndb query listList saved queries
syndb query saveSave a new query
syndb query show {id}Show query details
syndb query update {id}Update a saved query
syndb query delete {id}Delete a saved query
syndb query run {id}Execute a saved query
syndb query status {id}Check execution status

dataset — Dataset Management

CommandDescription
syndb dataset newRegister a new dataset
syndb dataset prepareValidate and convert to Parquet
syndb dataset validateSchema validation only
syndb dataset uploadUpload data via Arrow Flight
syndb dataset downloadDownload dataset via Arrow Flight
syndb dataset mesh-uploadUpload 3D mesh files (.glb)

etl — Dataset Import Pipeline

Each dataset supports download, validate, and import subcommands:

syndb etl <dataset> download
syndb etl <dataset> validate
syndb etl <dataset> import [--tables <table1,table2>]

Available Datasets

DatasetKeyDescription
FlyWireflywireWhole-brain Drosophila connectome
HemibrainhemibrainJanelia FlyEM v1.2.1
MANCmancMale Adult Nerve Cord
MICrONSmicronsMouse visual cortex
H01h01Human cortical tissue
BANCbancBrain And Nerve Cord
FANCfancFemale Adult Nerve Cord
Fish1fish1Zebrafish brain
Optic Lobeoptic-lobeDrosophila optic lobe
Male CNSmale-cnsMale central nervous system
C. elegans Hermaphroditec-elegans-hermComplete hermaphrodite
C. elegans Malec-elegans-maleComplete male
C. elegans Developmentalc-elegans-devDevelopmental stages
PlatynereisplatynereisMarine annelid
L1 Larvall1-larvalDrosophila L1 larval brain
Spine Morphometry (Kasthuri)spine-kasthuriDendritic spine morphometry
Spine Morphometry (Ofer)spine-oferDendritic spine morphometry
Spine Morphometry (MICrONS)spine-micronsDendritic spine morphometry
Allen Cell Typesallen-cell-typesAllen Institute reference
NeuroMorphoneuromorphoNeuroMorpho.org archive

federation — Federation Management

CommandDescription
syndb federation initInitialize federation config and register with hub
syndb federation statusShow federation configuration
syndb federation sync-schemaSync ClickHouse schema from hub
syndb federation testTest connectivity (mDNS + hub + ClickHouse)
syndb federation clustersList all federated clusters
syndb federation logoutRemove federation config

See Node Setup for detailed usage.

graph-precompute — Batch Graph Computation

syndb graph-precompute --dataset-id {uuid}

Pre-computes graph metrics and stores results in ClickHouse materialized tables.

k8s — Kubernetes Administration

CommandDescription
syndb k8s jobsList ETL jobs
syndb k8s statusView job status
syndb k8s cleanupClean up completed/failed jobs

bench — Benchmarking

Performance testing suite for API and federation queries.

completions — Shell Completions

syndb completions bash > ~/.local/share/bash-completion/completions/syndb
syndb completions zsh > ~/.zfunc/_syndb
syndb completions fish > ~/.config/fish/completions/syndb.fish