Part of the SyncLite Platform — Build Anything, Sync Anywhere.
SyncLite Client is an interactive command-line SQL client for SyncLite devices. It lets developers and operators connect to any SyncLite-managed embedded database, execute SQL statements interactively or from a script, and observe data consolidation in action — all from the terminal.
It supports two connection modes:
| Mode | How | When to use |
|---|---|---|
| Embedded (direct) | Uses SyncLite Logger JDBC in-process | Local development and testing |
| Remote (HTTP) | Connects to a running SyncLite DB server | Multi-language environments, remote devices |
# Windows — uses default DB at %USERPROFILE%\synclite\job1\db\test.db (SQLITE)
synclite-cli.bat
# Linux / macOS
synclite-cli.sh
# With explicit options
synclite-cli.sh <path/to/db/file> \
--device-type SQLITE \
--synclite-logger-config <path/to/synclite_logger.conf>synclite-cli.sh <path/to/db/file> \
--device-type SQLITE \
--synclite-logger-config <path/to/synclite_logger.conf> \
--server http://localhost:5555When --server is specified the client sends all SQL over HTTP to the SyncLite DB server instead of using the embedded library.
SQLITE · DUCKDB · DERBY · H2 · HYPERSQL · STREAMING · SQLITE_APPENDER · DUCKDB_APPENDER · DERBY_APPENDER · H2_APPENDER · HYPERSQL_APPENDER
$ synclite-cli.sh ~/synclite/db/myapp.db --device-type SQLITE
Connected to SyncLite SQLITE device: /home/alice/synclite/db/myapp.db
Type SQL statements, or 'exit' to quit.
SyncLite> CREATE TABLE IF NOT EXISTS sensor_data(ts BIGINT, value REAL);
OK
SyncLite> INSERT INTO sensor_data VALUES(1714200000, 23.5);
OK (1 row affected)
SyncLite> SELECT * FROM sensor_data;
ts | value
--------------+-------
1714200000 | 23.5
SyncLite> exit
Bye.
All statements are not only executed on the local embedded database but also captured in sync log files and eventually consolidated into the destination database by SyncLite Consolidator.
cd synclite-client/client
mvn -Drevision=oss clean installBuilt artifacts under client/target/: synclite-cli.bat, synclite-cli.sh, synclite-logger.conf (sample config).
| Component | Role |
|---|---|
| SyncLite DB | HTTP server the client can connect to in remote mode |
| SyncLite Logger | Embedded JDBC driver used in embedded mode |
| SyncLite Consolidator | Picks up the sync logs and replicates to destination |
- Full documentation: https://www.synclite.io/resources/documentation
- Website: https://www.synclite.io
- Slack: https://join.slack.com/t/syncliteworkspace/shared_invite/zt-2pz945vva-uuKapsubC9Mu~uYDRKo6Jw
← Back to the SyncLite Platform README