vela exec

Execute command in a container

Synopsis

Execute command inside container based vela application.

  1. vela exec [flags] APP_NAME -- COMMAND [args...]

Examples

  1. # Get output from running 'date' command from app pod, using the first container by default
  2. vela exec my-app -- date
  3. # Switch to raw terminal mode, sends stdin to 'bash' in containers of application my-app
  4. # and sends stdout/stderr from 'bash' back to the client
  5. vela exec my-app -i -t -- bash -il

Options

  1. --cluster string filter the pod by the cluster name
  2. -c, --component string filter the pod by the component name
  3. --container string specify the container name
  4. -e, --env string specify environment name for application
  5. -h, --help help for exec
  6. -n, --namespace string specify the Kubernetes namespace to use
  7. -p, --pod string specify the pod name
  8. --pod-running-timeout duration The length of time (like 5s, 2m, or 3h, higher than zero) to wait until at least one pod is running (default 1m0s)
  9. -i, --stdin Pass stdin to the container (default true)
  10. -t, --tty Stdin is a TTY (default true)

Options inherited from parent commands

  1. -y, --yes Assume yes for all user prompts

SEE ALSO

Go Back to CLI Commands Homepage.

Auto generated by spf13/cobra script in KubeVela.