This feature is in public preview.
Create an instance template
Create a template with a name and an image. Public images require the fullsfc:image:sfcompute:public:... name; SF Compute rejects the short trailing segment on its own.
name@<version> pin form.
Cloud-init
Pass a startup script or cloud-config YAML file via--cloud-init. The template stores the file and
applies it to every instance you create from it. Maximum size is 64 KB.
Cloud-init data isn’t parameterized per instance: every instance created from the template receives
the same bytes. For per-instance identity, use a deployment’s
instance name template. For example, this startup
script installs an SSH key.
startup.sh
List templates
List the templates in your workspace.Get template details
Get a template by name or ID.Template IDs use the
itmpl_ prefix. You can still pass older IDs with the legacy ntmpl_ prefix.