跳到主要内容

Node Management Commands:node

List all nodes:list

Command Entry:

bohr node list

Summary:

Usage:
bohr node list [flags]

Aliases:
list, -ls

Flags:
--csv output with CSV format
-h, --help Display help information for list
--json output with JSON format
--noheader does not print header information
-p, --paused only show paused nodes
-d, --pending only show pending nodes
-q, --quiet only show node id and node name
-s, --started only show started nodes
-w, --waiting only show waiting nodes
--yaml output in YAML format

Example:

bohr node list --json -p  
# View all nodes in paused state in JSON format
bohr node list -q
# View all nodes' IDs and names (ctrl+c to exit)

node list

Create Node: create

Command Entry:

bohr node create

Summary:

Usage:
bohr node create [flags]

Flags:
-h, --help help for create

Example:

bohr node create # Create a node 

bohr node create4

Connect Node:connect

Command Entry:

bohr node connect

Summary:

Usage:
bohr node connect <node_id> [flags]

Flags:
-h, --help help for connect
-n, --node_id int node id to connect

Parameter description:

ParameterAbbreviationDescriptionRequired
--node_id-nNode idYes

Example:

bohr node connect  12345 
# connect nodes 12345

Stop node: stop

Command Entry:

bohr node stop

Summary:

Usage:
bohr node stop <node_id> [flags]

Aliases:
stop, -s

Flags:
-h, --help help for stop
-n, --node_id int node id

Parameter description:

ParameterAbbreviationDescriptionRequired
--node_id-nNode idYes

Example:

bohr node stop 12345 
# Stop node with ID 12345

Delete note:delete

Command Entry:

bohr node delete

Summary:

Usage:
bohr node delete <node_id> [flags]

Aliases:
delete, -d

Flags:
-h, --help help for delete
-n, --node_id int node id

Parameter description:

ParameterAbbreviationDescriptionRequired
--node_id-nNode idYes

Example:

bohr node delete  12345 
# delete nodes 12345