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).
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:
Parameter | Abbreviation | Description | Required |
---|---|---|---|
--disk_size | -d | Node disk size (unit: GB) | No |
--file | -f | Config File | No |
--image_path | -i | Image agress to be used | Yes |
--machine_type | -m | Machine Configuration | Yes |
--name | -n | Node name | No |
--project_id | -p | Project ID | Yes |
--turnoff_after | -t | Automatic shutdown time (unit: hours) | No |
Example:
$ bohr node create # Create a node
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:
Parameter | Abbreviation | Description | Required |
---|---|---|---|
--node_id | -n | Node id | Yes |
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:
Parameter | Abbreviation | Description | Required |
---|---|---|---|
--node_id | -n | Node id | Yes |
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:
Parameter | Abbreviation | Description | Required |
---|---|---|---|
--node_id | -n | Node id | Yes |
Example:
$ bohr node delete -n 12345 # delete nodes 12345