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).

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.
Needs declaw CLI v0.8.0 or later. Earlier versions have no --alias flag and cannot build templates; check yours with declaw version.
The command prints the build ID, streams the build output to stderr while it waits (a build usually takes several minutes), then prints the alias, build ID, status and template ID. Ctrl-C stops the wait, not the build. Create sandboxes from the template by its alias:

rebuild

Needs declaw CLI v0.9.0 or later. Earlier versions have no rebuild command; check yours with declaw version.
Retry a template whose build failed. The rebuild reuses the template’s stored spec; templates are immutable once built, so a ready template, or one whose build is still running, is refused. A failed template keeps its alias, so running template build again with the same alias is refused with a message that names the template. To retry the same spec, rebuild it; to build a changed spec, delete it first.
Like build, the command streams the build output to stderr while it waits, then prints the alias, template ID, build ID and status. Ctrl-C stops the wait, not the build.

info

Show details for a template, by its template ID (declaw template list shows it).

delete

Delete a template, by its template ID.

Next steps