Skip to main content

global-options

--container-runtime or OPCTL_CONTAINER_RUNTIME default: docker

To specify the container runtime opctl uses to run containers, include a --container-runtime or set an OPCTL_CONTAINER_RUNTIME env var.

Allowed values are:

  • k8s (connects to k8s via downward API)
  • docker (connects to docker via same config as docker client)
  • qemu (experimental)

Examples

opctl --container-runtime qemu

--data-dir or OPCTL_DATA_DIR default: OS dependent per user app data

To specify the path of the directory used to store opctl data, include a --data-dir or set an OPCTL_DATA_DIR env var. to a relative or absolute path.

Examples

opctl --data-dir . node create
export OPCTL_DATA_DIR=. && opctl node create

--listen-address or OPCTL_LISTEN_ADDRESS default: 127.0.0.1:42224

To specify the HOST:PORT on which the node will listen, include a --listen-address or set an OPCTL_LISTEN_ADDRESS env var.

Examples

opctl --listen-address 0.0.0.0:42224

-h or --help

For context specific help, include a -h (or --help) flag w/ your command.

Examples

opctl node create -h

Usage: opctl node create

Creates a node

--nc

To disable color, include a --nc flag w/ your command.

this may increase readability in environments not supporting color escape codes or piping output to another program.

Examples

opctl --no-color events

-v or --version

To print the version and exit, specify a -v (or --version) flag.

Examples

opctl -v