CLI TOOL & SHELL CLIENT
ThingsPrompt
A fast, lightweight command-line shell client for ThingsDB — ideal for executing queries, performing collection backups, importing data, and administering clusters.
🐍 Python CLI
📦 Collection Import / Export
🔒 SSL/TLS Transport
Interactive Querying
Connect to any local or remote ThingsDB node, run ad-hoc queries, inspect stored state, and evaluate expressions in real time.
Collection Export
Dump complete collection data, procedures, and schema definitions into structured files for automated backup and migration.
Data Import
Restore collections or seed initial test datasets into fresh collection scopes directly from exported backup files.
Secure Credentials
Support for SSL/TLS encrypted sockets, token-based authentication, interactive password prompts, and custom timeout settings.
things-prompt --help
usage: things-prompt [-h] [--node NODE] [--port PORT] [--user USER]
[--password PASSWORD] [--token TOKEN] [--scope SCOPE]
[--timeout TIMEOUT] [--ssl] [--version]
{export,import} ...
positional arguments:
{export,import} sub-command help
export export a collection
import import a collection
optional arguments:
-h, --help show this help message and exit
--node NODE, -n NODE node address (default: 127.0.0.1)
--port PORT TCP port where the node is listening for API calls
--user USER, -u USER user name
--password PASSWORD password, will be prompted securely if omitted
--token TOKEN, -t token authentication key
--scope SCOPE, -s set the initial target collection scope
--timeout TIMEOUT connect and query timeout in seconds
--ssl enable secure connection (SSL/TLS)
--version print version and exitCommon Usage Commands
1. Exporting a Collection Schema & Data
things-prompt --node 127.0.0.1 --port 9200 --user admin --scope "//stuff" export --out stuff_backup.json2. Importing Data into a Target Collection
things-prompt --node 127.0.0.1 --port 9200 --user admin --scope "//stuff" import --in stuff_backup.json3. Starting an Interactive Session over SSL
things-prompt --node db.example.com --port 9200 --user admin --ssl --scope "//stuff"