create-template
Creates a reusable pod or endpoint template to define image, ports, environment variables, disk, and volume settings.
Instructions
Create a reusable pod/endpoint template (image, ports, env, disk/volume). On v2 a category is required and defaults to NVIDIA.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variables | |
| name | Yes | Name for the template | |
| ports | No | Ports to expose | |
| readme | No | README content in markdown format | |
| category | No | Hardware category for the template. On v2 a category is required and defaults to NVIDIA when omitted — set CPU or AMD for non-NVIDIA templates so they are not mis-categorized. | |
| imageName | Yes | Docker image to use | |
| volumeInGb | No | Volume size in GB | |
| isServerless | No | Is this a serverless template | |
| dockerStartCmd | No | Docker start commands | |
| volumeMountPath | No | Path to mount the volume | |
| dockerEntrypoint | No | Docker entrypoint commands | |
| containerDiskInGb | No | Container disk size in GB | |
| containerRegistryAuthId | No | ID of a container registry credential (from create-container-registry-auth / list-container-registry-auths) used to pull a private image. Required when imageName points at a private registry; without it serverless workers fail the image pull. |