Skip to main content
declaw template (alias declaw tpl) lists and builds the base images sandboxes boot from. See Templates for the concept and the built-in set.

list

List available templates (alias ls).
declaw template list

build

Build a custom template when the built-in templates don’t have the dependencies you need. Provide a Dockerfile, or assemble the spec from flags.
declaw template build --dockerfile Dockerfile
declaw template build --base-image ubuntu:22.04 --apt-package ffmpeg --run-cmd "pip install numpy"
FlagDefaultDescription
--dockerfilePath to a Dockerfile; its contents become the build spec
--base-imageBase image to build from
--apt-packageapt package to install. Repeatable
--run-cmdCommand to run during the build. Repeatable
--start-cmdCommand to run when a sandbox starts
--disk-mb0Disk size in MB (0 = default)
--no-waitfalseReturn immediately and build in the background instead of blocking
The command prints the build ID, status, and resulting template ID.

info

Show details for a template.
declaw template info my-template

delete

Delete a template.
declaw template delete my-template

Next steps