Read-Evaluate-Loop for Chotki. Manage databases, network,
objects. Debug and troubleshoot.
All commands have the same syntax: verb {rdx args}.
RDX arguments can take different forms (string, maps,
arrays, ids, etc) depending on the verb. Each command
returns an id and/or an error message.
Replica lifecycle
create b0b-0 create a replica with that id
open b0b-0 open a replica
close close the replica
exit
Networking
listen "localhost:1234" tcp listen a port
connect "remote:1234" tcp connect
Backup/restore
Classes and objects
class {_ref:Parent,Name:S,Girl:T}
create a (sub)class with the given field types
name {Child:b0b-9}
set a global-scope name for an object/type/field
new {_ref:Child,Name:"Alice"}
create a new object of the specified class (Child)
edit {_ref:b0b-a,Girl:true}
edit the specified object
cat b0b-a shallow-print the object in JSON-like RDX
list b0b-a deep-print the object in JSON-like RDX
Debugging
dump all, dump objects, dump vv
dump the raw key-value store
tell b0b-a
notify of any changes to the object/field
mute b0b-a stop notifying on that
pinc b0b-f-2, ponc b0b-f-2
ping/pong increments to the counter (normally,
commands are entered at different replicas)
sinc {fid: b0b-f-2, ms: 100, count: 1000000}
blind-increment the field at that interval that many times