php/docs/build/cli/vm/templates/index.md
Snider 28d004ff61
Some checks failed
CI / PHP 8.4 (push) Failing after 1m54s
CI / PHP 8.3 (push) Failing after 1m58s
feat: replace Go CLI with PHP framework
Go CLI commands moved to core/go-php. This repo now contains
the Laravel modular monolith framework (previously php-framework).

- Remove all Go files (now in core/go-php)
- Add PHP framework: event-driven module loading, lifecycle events
- Composer package: core/php
- core/php-framework remains as-is for backward compat

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 08:49:51 +00:00

1.9 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

templates vars

Show variables defined by a template.

core vm templates vars <name>

Example

core vm templates vars core-dev

Output:

Variables for core-dev:
  SSH_KEY      (required)  SSH public key
  MEMORY       (optional)  Memory in MB (default: 4096)
  CPUS         (optional)  CPU count (default: 4)

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/. See Template Format for examples.

Run with:

core vm run --template myserver

See Also