compute

strong-opx compute

Manage state of compute instance inside a project/environment

usage: strong-opx compute [-h] [--project PROJECT] [--env ENVIRONMENT] [--wait] [-v {0,1,2,3}] [--traceback] {start,restart,stop,status} host_or_group [host_or_group ...]

positional arguments

operation

Operation to execute

host_or_group

Hostname or host group or ip of instance

options

-h, --help

show this help message and exit

--project <project>

Select project by its name. If missing, strong-opx will attempt to auto-select project based on current working directory and its parents and looking for presence of configured project

--env <environment>

Environment name. If project has only one environment that will be auto selected

--wait

Wait for operation to complete

-v {0,1,2,3}, --verbosity {0,1,2,3}

Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output.

--traceback

Raise instead of handling known exceptions

Supported Operations

  • start: Starts compute instance(s) if currently stopped

  • stop: Stop compute instance(s) if currently running

  • restart: Stop running compute instance(s) and then start stopped compute instance(s)

  • status: Show status of compute instance(s)