跳到主要内容

Node Management Commands:node

List all nodes:list

Entry:

bohr node list

Summary:

Usage:
bohr node list [flags]

Aliases:
list, -ls

Flags:
--csv Output in CSV format
-h, --help help for list
--json Output in JSON format
--yaml Output in YAML format

Example:

$ bohr node list --json  # View all nodes in JSON format.
$ bohr node list # View all nodes (Press Ctrl+C to exit).

node list

Create Node: create

Entry:

bohr node create

Summary:

Usage:
bohr node create [flags]

Flags:
-d, --disk_size int disk size
-f, --file string config file
-h, --help help for create
-i, --image_path string image path
-m, --machine_type string machine type
-n, --name string node name
-p, --project_id int project id
-t, --turnoff_after int turnoff after

Parameter description:

ParameterAbbreviationDescriptionRequired
--disk_size-dNode disk size (unit: GB)No
--file-fConfig FileNo
--image_path-iImage agress to be usedYes
--machine_type-mMachine ConfigurationYes
--name-nNode nameNo
--project_id-pProject IDYes
--turnoff_after-tAutomatic shutdown time (unit: hours)No

Example:

$ bohr node create # Create a node 

bohr node create4

Connect Node:connect

Entry:

bohr node connect

Summary:

Usage:
bohr node connect [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 -n 12345 # connect nodes 12345

Stop node: stop

Entry:

bohr node stop

Summary:

Usage:
bohr node stop [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 -n 12345 # stop nodes 12345

Delete note:delete

Entry:

bohr node delete

Summary:

Usage:
bohr node delete [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 -n 12345 # delete nodes 12345