CLI
The released binaries are named by architecture (e.g., ocf-amd64
). The CLI root command is ocfcore
in source. Examples below use the binary:
./ocf-amd64 --help | cat
Commands
Section titled “Commands”- start: Start the node and HTTP API.
- version: Print version information.
- init: Initialize config (placeholder).
Flags (start)
Section titled “Flags (start)”--wallet.account
string: Wallet account.--bootstrap.addr
string: Bootstrap source (HTTP URL returning{"bootstraps": ["/ip4/x/tcp/43905/p2p/<ID>"]}
or a single multiaddr). Default:http://152.67.71.5:8092/v1/dnt/bootstraps
.--seed
string: Seed for deterministic peer key (use0
to persist/load key).--mode
string:standalone
,local
, ornode
/full
(defaultnode
).--tcpport
string: LibP2P TCP port. Default43905
.--udpport
string: LibP2P QUIC UDP port. Default59820
.--subprocess
string: Start a critical subprocess (kept alive by OCF).--public-addr
string: Public IP address to advertise (enables bootstrap role).--service.name
string: Local service name to register (e.g.,llm
).--service.port
string: Local service port to register (e.g.,8080
).--cleanslate
bool: Remove local CRDT db on start. Defaulttrue
.
Examples
Section titled “Examples”Start a standalone dispatcher:
./ocf-amd64 start --mode standalone
Start a node using a known bootstrap multiaddr:
./ocf-amd64 start --bootstrap.addr=/ip4/1.2.3.4/tcp/43905/p2p/<BOOTSTRAP_PEER_ID>
Advertise as a public bootstrap:
./ocf-amd64 start --public-addr=203.0.113.10
Register a local LLM service (worker):
./ocf-amd64 start \ --service.name=llm \ --service.port=8080