template command (alias: tpl). List available templates, view template details, build custom templates, and delete templates.
Command Syntax
Subcommands
list
List all available templates.
Syntax:
--output, -o FORMAT- Output format:table,json,plain(default:table)
0- Success3- Authentication error
info
Get detailed information about a template.
Syntax:
TEMPLATE_NAME- Template name or ID (required)
--output, -o FORMAT- Output format:table,json,plain(default:table)
0- Success3- Authentication error4- Template not found
build
Build a custom template from a Dockerfile.
Syntax:
--name TEXT- Template name (required)--dockerfile PATH- Path to Dockerfile--image TEXT- Base image (e.g.,python:3.11,node:20)--context PATH- Build context directory--output, -o FORMAT- Output format:table,json,plain(default:table)
0- Success1- Build failed3- Authentication error
delete
Delete a custom template.
Syntax:
TEMPLATE_ID- Template ID to delete (required)
--force- Skip confirmation prompt
0- Success3- Authentication error4- Template not found
Shell Scripting Examples
List and Filter Templates
Build and Use Custom Template
Related
- CLI Quickstart - Get started with CLI
- Sandbox Commands - Create sandboxes from templates
- Python SDK: Template Builder - Python SDK template building
- JavaScript SDK: Template Builder - JavaScript SDK template building
- API: Templates - REST API endpoints
Next Steps
- Learn about Sandbox Management to create sandboxes from templates
- Explore Template Building for advanced template creation
- Review Pre-built Templates for available templates

