CLI Reference
This is the compact reference for the Softadastra CLI.
Use this page when you already know what you want to do and need the exact command quickly.
For explanations, read the CLI pages first:
Command shape
softadastra <command> [subcommand] [arguments]Examples:
softadastra status
softadastra node info
softadastra node start
softadastra store put app/name Softadastra
softadastra store get app/name
softadastra sync status
softadastra sync tick
softadastra peersMain commands
| Command | Purpose |
|---|---|
softadastra status | Show local runtime status |
softadastra node | Show node command help |
softadastra node info | Show local node information |
softadastra node start | Start node services for the current CLI session |
softadastra store | Show store command help |
softadastra store put <key> <value> | Write a local value |
softadastra store get <key> | Read one local value |
softadastra sync | Show sync command help |
softadastra sync status | Show sync state |
softadastra sync tick | Run one manual sync cycle |
softadastra peers | List discovery and transport peers |
softadastra | Start interactive mode |
Status
Show the current local runtime status.
softadastra statusExample output:
Softadastra status
Component Metric Value
node id node-1
node running no
store entries 0
sync outbox 0
sync queued 0
sync in_flight 0
sync acknowledged 0
sync failed 0
transport running no
transport peers 0
discovery running no
discovery peers 0
metadata running noUse this first when you want to see what the local runtime looks like.
Node
Show node command help.
softadastra nodeOutput:
Softadastra node
Usage
softadastra node info
softadastra node start
Commands
info Show local node information
start Start local node services for this CLI sessionNode info
Show information about the local node.
softadastra node infoExample output when metadata is available:
Softadastra node
Field Value
node_id node-1
display_name Softadastra Node
hostname local-machine
os linux
version 0.1.0
started_at 1760000000000
uptime_ms 1250
capabilities 6
node_running noExample output when metadata is not available yet:
Softadastra node
Field Value
node_id node-1
node_running no
metadata unavailableNode start
Start local node services for the current CLI session.
softadastra node startExample output:
Starting Softadastra node
✓ Softadastra node services started for this CLI session.
node_id node-1
transport running
discovery running
metadata runningIf the node is already running:
Softadastra node is already running.
node_id node-1node start starts services only for the current CLI runtime.
It is especially useful in interactive mode, because the services stay available while you run the next commands.
For a long-running node, use the Softadastra node app.
Store
Show store command help.
softadastra storeOutput:
Softadastra store
Usage
softadastra store put <key> <value>
softadastra store get <key>
Commands
put Write a key/value pair
get Read one keyStore put
Write a local value.
softadastra store put <key> <value>Example:
softadastra store put app/name SoftadastraExample output:
✓ Stored value.
Field Value
key app/name
version 1
status createdIf the key already exists, the status can be updated.
softadastra store put app/name "Softadastra Runtime"Example output:
✓ Stored value.
Field Value
key app/name
version 2
status updatedIf the value did not change, the status can be unchanged.
Store get
Read one local value.
softadastra store get <key>Example:
softadastra store get app/nameExample output:
Store entry
Field Value
key app/name
value Softadastra
version 1
timestamp 1760000000000If the key does not exist:
Key not found: app/nameA missing key is a normal store result. It does not mean the runtime crashed.
Sync
Show sync command help.
softadastra syncOutput:
Softadastra sync
Usage
softadastra sync status
softadastra sync tick
Commands
status Show sync engine state
tick Run one manual sync cycleSync status
Show the current sync state.
softadastra sync statusExample output:
Softadastra sync status
Metric Value
node_id node-1
outbox_size 1
queued_count 1
in_flight_count 0
acknowledged_count 0
failed_count 0
last_submitted_version 1
last_applied_remote_version 0
total_retries 0Use this when you want to know what sync is tracking locally.
Sync tick
Run one manual sync cycle.
softadastra sync tickExample output:
Softadastra sync tick
Metric Value
retried_count 0
batch_size 1
connected_peers 0
sent_count 0
pruned_count 0
No connected transport peers available.A tick can retry expired work, produce a sync batch, and try to send that batch to connected transport peers.
If no peer is connected, local data is still safe locally.
Peers
List discovery and transport peers.
softadastra peersExample output when no peers are available:
Softadastra peers
discovery no
transport no
Discovery peers
No discovery peers found.
Transport peers
No transport peers found.Example discovery peer output:
Discovery peers
Node Host Port Last seen
node-2 127.0.0.1 9500 1760000000000Example transport peer output:
Transport peers
Node Host Port State Connected Last seen Errors
node-2 127.0.0.1 9500 Connected yes 1760000000000 0No peers is a valid state.
Local store commands can still work without peers.
Interactive mode
Start the CLI without a command:
softadastraThen run commands without repeating softadastra.
softadastra> status
softadastra> node info
softadastra> node start
softadastra> store put app/name Softadastra
softadastra> store get app/name
softadastra> sync status
softadastra> sync tick
softadastra> peers
softadastra> exitInside interactive mode, this is correct:
softadastra> statusThis is wrong:
softadastra> softadastra statusExit with:
exitor:
quitLocal-first behavior
Local store commands do not need a peer.
This works even if transport is stopped, discovery is stopped, and no peer is available:
softadastra store put draft/1 hello
softadastra store get draft/1Sync and peers matter when the local node needs to exchange data with another node.
They are not required for local reads and writes.
Common errors
Unknown store command
Command:
softadastra store remove app/nameOutput:
Unknown store command: remove
Usage: store <put|get>Use:
softadastra store put <key> <value>
softadastra store get <key>Unknown sync command
Command:
softadastra sync pruneOutput:
Unknown sync command: prune
Usage: sync <status|tick>Use:
softadastra sync status
softadastra sync tickUnknown node command
Command:
softadastra node somethingOutput:
Unknown node command: something
Usage: node <info|start>Use:
softadastra node info
softadastra node startMissing store value
Command:
softadastra store put app/nameOutput:
Missing key or value argument.
Usage: store-put <key> <value>Fix:
softadastra store put app/name SoftadastraMissing store key
Command:
softadastra store getOutput:
Missing key argument.
Usage: store-get <key>Fix:
softadastra store get app/nameEmpty key
Command:
softadastra store put "" valueOutput:
Key cannot be empty.Use a non-empty key:
softadastra store put app/name valueKey not found
Command:
softadastra store get missing/keyOutput:
Key not found: missing/keyThis is a normal store result. It only means that key is not in the local store.
Good first workflow
Run this after installation:
softadastra status
softadastra node info
softadastra store put app/name Softadastra
softadastra store get app/name
softadastra sync status
softadastra sync tick
softadastra node start
softadastra peers
softadastra statusThis checks status, node info, local write, local read, sync state, one manual tick, node services, peers, and status again.
Full quick reference
softadastra status
softadastra node
softadastra node info
softadastra node start
softadastra store
softadastra store put <key> <value>
softadastra store get <key>
softadastra sync
softadastra sync status
softadastra sync tick
softadastra peersInteractive mode:
softadastra
softadastra> status
softadastra> node info
softadastra> node start
softadastra> store put <key> <value>
softadastra> store get <key>
softadastra> sync status
softadastra> sync tick
softadastra> peers
softadastra> exitSummary
The CLI reference is the compact command map for Softadastra.
Use:
softadastra statusto inspect the runtime.
Use:
softadastra store put <key> <value>
softadastra store get <key>to test local data.
Use:
softadastra sync status
softadastra sync tickto inspect and move sync.
Use:
softadastra node start
softadastra peersto work with node services and peers.
Next step
Continue with SDKs.