Skip to content

branectl Reference

branectl is the node management tool used by system administrators to deploy, configure, and manage Brane nodes.

branectl [OPTIONS] <COMMAND>
OptionDescription
-n, --node <PATH>Path to node.yml (default: ./node.yml)
--helpShow help
--versionShow version

Download Brane service Docker images.

Terminal window
branectl download services <NODE_TYPE> [OPTIONS]
ArgumentValues
NODE_TYPEcentral, worker, proxy, auxillary
OptionDescription
-fCreate missing directories
--version <VER>Download a specific version

Examples:

Terminal window
branectl download services central -f
branectl download services worker -f --version 3.0.0
branectl download services auxillary -f

Generate infrastructure configuration for the central node.

Terminal window
branectl generate infra [OPTIONS] <ID:ADDR>...
OptionDescription
-fCreate missing directories
-p <PATH>Output path (default: ./config/infra.yml)

Example:

Terminal window
branectl generate infra -f -p ./config/infra.yml \
hospital-a:10.0.1.1 hospital-b:10.0.2.1

Generate node configuration.

Terminal window
# Central node
branectl generate node [OPTIONS] central <HOSTNAME>
# Worker node
branectl generate node [OPTIONS] worker <HOSTNAME> <LOCATION_ID>
# Proxy node
branectl generate node [OPTIONS] proxy <HOSTNAME>
OptionDescription
-fCreate missing directories

Generate backend configuration for worker nodes.

Terminal window
branectl generate backend [OPTIONS] <BACKEND_TYPE>
ArgumentValues
BACKEND_TYPElocal (Docker daemon)
OptionDescription
-fCreate missing directories
-p <PATH>Output path

Generate proxy configuration.

Terminal window
branectl generate proxy [OPTIONS]
OptionDescription
-fCreate missing directories
-p <PATH>Output path

Generate TLS certificates.

Terminal window
# Server certificates
branectl generate certs [OPTIONS] server <LOCATION_ID> [-H <HOSTNAME>]
# Client certificates
branectl generate certs [OPTIONS] client <LOCATION_ID> [-H <HOSTNAME>]
OptionDescription
-fCreate missing directories
-p <PATH>Output directory

Generate a policy secret key file.

Terminal window
branectl generate policy_secret [OPTIONS]

Bootstrap a policy database.

Terminal window
branectl generate policy_db [OPTIONS]

Generate an access token for policy management.

Terminal window
branectl generate policy_token <INITIATOR> <SYSTEM> <DURATION> -s <SECRET_PATH>
ArgumentDescription
INITIATORPolicy expert name
SYSTEMDomain identifier
DURATIONToken validity (e.g., 30d, 1y)

Start node services.

Terminal window
branectl start [OPTIONS] <NODE_TYPE>
OptionDescription
--image-dir <DIR>Custom image directory
--local-auxUse locally downloaded auxiliary images

Stop node services.

Terminal window
branectl stop <NODE_TYPE>