Alias
You can usetpl as a shorthand for template:
Subcommands
List templates
List available templates:List flags
Search templates
Search for templates by name:Search flags
Get template details
Get detailed information about a specific template, including README, environment variables, and exposed ports (with their labels):Create a template
Create a new template:Pod templates vs Serverless templates: Templates are either for Pods or for Serverless endpoints, not both. Pod templates support storage and are used with
runpodctl pod create. Serverless templates do not support volume disks and are used with runpodctl serverless create. Use the --serverless flag when creating templates for Serverless endpoints.Create flags
Display names for the ports the template exposes, shown next to each port in the Runpod console. Provide comma-separated
port=name pairs (e.g., 22=ssh,8888=jupyter lab) or a JSON object (e.g., {"22":"ssh","8888":"jupyter lab"}). This flag requires --ports, and every labeled port must also appear in --ports. The pair form splits on commas, so use the JSON form for any label name that contains a comma.ID of the container registry authentication used to pull the image from a private registry. Find the ID with
runpodctl registry list.Create as a Serverless template. Serverless templates do not support volume disks (
--volume-in-gb is not supported). Each Serverless template can only be bound to one endpoint at a time.Update a template
Update an existing template:Update flags
New display names for the template’s exposed ports, as
port=name pairs or a JSON object. Pass an empty value (--port-labels "") to remove all port labels.New container registry authentication ID for pulling private images. Pass an empty value (
--registry-auth-id "") to detach registry credentials from the template.