jx rsh

list of jx commands

jx rsh

Opens a terminal in a pod or runs a command in the pod

Synopsis

Opens a terminal or runs a command in a pods container

jx rsh [deploymentOrPodName] [flags]

Examples

  # Open a terminal in the first container of the foo deployment's latest pod
  jx rsh foo
  
  # Opens a terminal in the cheese container in the latest pod in the foo deployment
  jx rsh -c cheese foo
  
  # To connect to one of your DevPods use:
  jx rsh -d
  
  # To execute something in the remote shell (like classic rsh or ssh commands)
  jx rsh -e 'do something'

Options

  -c, --container string     The name of the container to log
  -d, --devpod               Connect to a DevPod
      --environment string   The environment in which to look for the Deployment. Defaults to the current environment
  -e, --execute string       Execute this command on the remote container (default "bash")
  -h, --help                 help for rsh
  -n, --namespace string     the namespace to look for the Deployment. Defaults to the current namespace
  -p, --pod string           the pod name to use
  -s, --shell string         Path to the shell command
      --username string      The username to create the DevPod. If not specified defaults to the current operating system user or $USER'

Options inherited from parent commands

  -b, --batch-mode   Runs in batch mode without prompting for user input
      --verbose      Enables verbose output. The environment variable JX_LOG_LEVEL has precedence over this flag and allows setting the logging level to any value of: panic, fatal, error, warn, info, debug, trace

SEE ALSO

  • jx - jx is a command line tool for working with Jenkins X
Auto generated by spf13/cobra on 2-Sep-2020