MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / print_usage

Function print_usage

nodedb/src/ctl/dispatch.rs:218–243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216}
217
218fn print_usage() {
219 println!(
220 "nodedb — NodeDB server + operator tooling
221
222USAGE:
223 nodedb [CONFIG_FILE] Run the server (default mode)
224 nodedb --version Print version and exit
225 nodedb regen-certs --data-dir D --node-id N
226 Reissue this node's cert under the existing CA
227 nodedb rotate-ca --stage --data-dir D Generate a new CA, write to ca.d/, emit staged bundle
228 nodedb rotate-ca --finalize --remove FP Ask the running node to remove CA with fingerprint FP
229 nodedb join-token --create --data-dir D --for-node N [--ttl 10m]
230 Emit a one-time HMAC token for a joining node
231 nodedb healthcheck [--port N] Probe local HTTP /health (exit 0=healthy, 1=unhealthy)
232 nodedb help Print this message
233
234RESERVED (not yet implemented):
235 nodedb migrate Schema/data migration
236 nodedb backup Online backup
237 nodedb restore Restore from backup
238 nodedb verify Consistency check
239 nodedb repair Repair corrupted data
240 nodedb dump Logical export
241 nodedb fsck Filesystem consistency check"
242 );
243}
244
245#[cfg(test)]
246mod tests {

Callers 1

parse_subcommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected