跳到主要内容

Node Commands: node

bohr node manages Bohrium development nodes.

Commands

CommandUsageDescription
listbohr node list [flags]List and filter nodes
resourcesbohr node resourcesList available machine resources
getbohr node get <id>Get node details
createbohr node create [flags]Create a node
connectbohr node connect <node_id>Open an SSH session
restartbohr node restart <id> [flags]Restart a node
stopbohr node stop <node_id>Stop a node
deletebohr node delete <node_id>Delete a node

List and inspect

bohr node list
bohr node list --started -o json
bohr node resources
bohr node get 12345

Status filters are -w, --waiting, -d, --pending, -s, --started, and --paused. Use --quiet for compact output; -q is the global jq flag.

Create

bohr node create \
--name development \
--project_id 123 \
--image_path registry.dp.tech/dptech/ubuntu:22.04 \
--machine_type <machine_type> \
--disk_size 40 \
--turnoff_after 24

Key flags are -n, --name, -i, --image_path, -P, --project_id, -m, --machine_type, -d, --disk_size, -t, --turnoff_after, and -f, --file.

Creating or restarting a node can incur compute charges. Use bohr node resources to inspect available resources and --dry-run to validate before execution.

Connect and lifecycle

bohr node connect 12345
bohr node restart 12345 --turnoff_after 12
bohr node stop 12345
bohr node delete 12345

delete is destructive and requires confirmation.