The cpln workload exec command lets you execute a specific command followed by custom arguments in a workload replica at a specific location.
--
echo hello world
).--stdin
, -i
false
.--tty
, -t
false
.--quiet
, -q
false
.--location
aws-us-west-1
). Defaults to the first location fetched from the specified GVC. When specifying, make sure that the specified location is part of the specified GVC.--replica
--container
This command lists available locations. Identify the location name from the output.
Example usage:
In cases where you have more than one replica in a workload deployment and you would like to execute a command in one of them, you can provide the --replica
option followed by the replicas name.
To override the output format, use the --output
option followed by the desired format (YAML, JSON, etc.).
Example usage:
Within a workload where numerous containers are configured, regardless if a container is handling traffic or functioning as a sidecar, it is feasible to execute a command to it by using the --container
option.
Example usage:
To send stdin to a command executed within a workload, use the -i
or --stdin
option.
Example usage:
To start an interactive session using the exec command, combine the -i
and -t
options (or use -it
). This allows you to run a shell command within a container interactively.
Example usage:
The cpln workload exec command lets you execute a specific command followed by custom arguments in a workload replica at a specific location.
--
echo hello world
).--stdin
, -i
false
.--tty
, -t
false
.--quiet
, -q
false
.--location
aws-us-west-1
). Defaults to the first location fetched from the specified GVC. When specifying, make sure that the specified location is part of the specified GVC.--replica
--container
This command lists available locations. Identify the location name from the output.
Example usage:
In cases where you have more than one replica in a workload deployment and you would like to execute a command in one of them, you can provide the --replica
option followed by the replicas name.
To override the output format, use the --output
option followed by the desired format (YAML, JSON, etc.).
Example usage:
Within a workload where numerous containers are configured, regardless if a container is handling traffic or functioning as a sidecar, it is feasible to execute a command to it by using the --container
option.
Example usage:
To send stdin to a command executed within a workload, use the -i
or --stdin
option.
Example usage:
To start an interactive session using the exec command, combine the -i
and -t
options (or use -it
). This allows you to run a shell command within a container interactively.
Example usage: