cli/docs/cmd/vm/templates/index.md
Snider 03ab4c1704 docs: add missing commands and fix sdk release integration
- Add vars command to vm/templates
- Add ssl command to php
- Fix sdk release integration (remove non-existent --target flag)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 15:51:51 +00:00

1.7 KiB

core vm templates

Manage LinuxKit templates for container images.

Usage

core vm templates [command]

Commands

Command Description
list List available templates
show Show template details
vars Show template variables

templates list

List all available LinuxKit templates.

core vm templates list

Output

Available Templates:

  core-dev
    Full development environment with 100+ tools
    Platforms: linux/amd64, linux/arm64

  server-php
    FrankenPHP production server
    Platforms: linux/amd64, linux/arm64

  edge-node
    Minimal edge deployment
    Platforms: linux/amd64, linux/arm64

templates show

Show details of a specific template.

core vm templates show <name>

Example

core vm templates show core-dev

Output:

Template: core-dev

Description: Full development environment with 100+ tools

Platforms:
  - linux/amd64
  - linux/arm64

Formats:
  - iso
  - qcow2

Services:
  - sshd
  - docker
  - frankenphp

Size: ~1.8GB

Template Locations

Templates are searched in order:

  1. .core/linuxkit/ - Project-specific
  2. ~/.core/templates/ - User templates
  3. Built-in templates

Creating Templates

Create a LinuxKit YAML in .core/linuxkit/:

# .core/linuxkit/myserver.yml
kernel:
  image: linuxkit/kernel:5.15
  cmdline: "console=tty0"

init:
  - linuxkit/init:v1.0.0

services:
  - name: sshd
    image: linuxkit/sshd:v1.0.0
  - name: myapp
    image: ghcr.io/myorg/myapp:latest

Run with:

core vm run --template myserver

See Also