Skip to content
  • templates
  • cli
  • sdk

Add images and fonts to a template workspace

Add PNG, JPEG, GIF, WebP, and WOFF2 files to a template draft from the editor, CLI, or SDK. They're committed on the next Save.

Add a logo, a hero image, or a custom font to a template without leaving your workflow. You can drop files into the dashboard editor, ask the template assistant, or add them from the CLI or SDK.

samva templates workspace add-asset tmpl_abc123 ./hero.png

The file waits with your unsaved changes and is committed on your next Save. PNG, JPEG, GIF, WebP, and WOFF2 files up to 1 MiB work. Files land in assets/ by default, and you pass --replace to overwrite one that exists.

SDK users call templates.putWorkspaceAsset with the file as base64.