Big News!  Tilt is joining Docker

Tilt CLI Reference

tilt alpha shell

Opens a shell into a container running in Tilt

Synopsis

Opens a shell into a container running in Tilt.

Given a resource name, finds the Kubernetes Pod in that resource, and opens an interactive shell.

By default, in order, we’ll try:

  • kubectl shell
  • kubectl exec -it -- bash
  • kubectl exec -it -- sh

Currently only works on MacOS and Linux.

tilt alpha shell [<resource-name>]

Options

  -c, --container string   Name of the container within the pod. Only required if there is more than 1 container.
  -h, --help               help for shell
      --host string        Host for the Tilt HTTP server. Only necessary if you started Tilt with --host. Overrides TILT_HOST env variable. (default "localhost")
      --port int           Port for the Tilt HTTP server. Only necessary if you started Tilt with --port. Overrides TILT_PORT env variable. (default 10350)

Options inherited from parent commands

  -d, --debug      Enable debug logging
      --klog int   Enable Kubernetes API logging. Uses klog v-levels (0-4 are debug logs, 5-9 are tracing logs)
  -v, --verbose    Enable verbose logging

SEE ALSO

  • tilt alpha - unstable/advanced commands still in alpha
Auto generated by spf13/cobra on 8-Nov-2024