Skip to main content
Version: 2.21

Client reference

The Telepresence CLI client is used to connect Telepresence to your cluster, start and stop intercepts, and create preview URLs. All commands are run in the form of telepresence <command>.

Commands​

A list of all CLI commands and flags is available by running telepresence help, but here is more detail on the most common ones. You can append --help to each command below to get even more information about its usage.

CommandDescription
completionGenerate a shell completion script for bash, zsh, fish, or powershell
config viewView current Telepresence configuration
connectStarts the local daemon and connects Telepresence to a namespace in your cluster. After connecting, outbound traffic is routed to the cluster so that you can interact with services as if your laptop was another pod (for example, curling a service by it's name)
curlcurl using a containerized executable that shares the network established by a connect. Especially useful when using connect --docker.
docker-runrun a docker image in a container that shares the network established by a connect. Especially useful when using connect --docker.
gather-logsGather logs from traffic-manager, traffic-agents, user, and root daemons, and export them into a zip file that can be shared with others or included with a github issue. Use --get-pod-yaml to include the yaml for the traffic-manager and traffic-agents. Use --anonymize to replace the actual pod names + namespaces used for the traffic-manager and pods containing traffic-agents in the logs.
helm installInstall the traffic-manager using the helm chart embedded in the telepresence executable.
helm upgradeUpgrade the traffic-manager using the helm chart embedded in the telepresence executable.
helm uninstallUninstall the traffic-manager and all traffic-agents.
ingestIngest a container to get access to its mounted volumes and environment variables: telepresence ingest <workload name> --container <container name> --env-file <file> When used with a -- separator, this command can also start a process so you can run a local instance of the ingested container.
interceptIntercepts a service to get its ingress traffic routed to the workstation and access to its mounted volumes and environment variables: telepresence intercept <service name> --port <TCP/UDP port> (use port/UDP to force UDP). When used with a -- separator, this command can also start a process so you can run a local instance of the service you are intercepting.
leaveStops an active ingest or intercept: telepresence leave hello.
listLists all workloads that are eligible for ingest or intercept.
loglevelTemporarily change the log-level. The default duration (30 minutes) can be altered using -d <duration>. The flags --local-only and --remote-only can be used to alter the scope of the change.
quitTell Telepresence daemons to quit.
statusShows the current connectivity status.
uninstallUninstalls a Traffic Agent for a specific workload. Use the --all-agents flag to remove all Traffic Agents from all workloads.
versionShow version of Telepresence CLI + Traffic-Manager (if connected)