burner new

Create a new burner project from a template.

burner new <template> [name] [options]

Arguments

ArgumentDescription
<template> Template to use (dotnet, web, or custom). Shows available templates if not provided.
[name] Project name. Auto-generated as template-HHMMSS if not provided.

Options

OptionDescription
-d, --directory <PATH> Target directory (uses burner home if not specified)
-e, --explorer Open in file explorer after creation
-c, --code Open in editor after creation (uses configured editor)
-i, --interactive Run template interactively (for templates requiring user input)

Examples

# Create with auto-generated name
burner new dotnet
# Create with specific name
burner new dotnet my-experiment
# Create web project and open in VS Code
burner new web quick-test -c
# Create in custom directory
burner new react my-app -d ~/code
# Interactive mode for templates with prompts
burner new svelte my-app -i

How It Works

  1. Creates a directory with the pattern YYMMDD-projectname
  2. Runs the template script with environment variables set
  3. Opens the project in editor/explorer if requested

Tip: Some templates (like Vite-based ones) require user input. Use -i or add # BURNER_INTERACTIVE to your template script for auto-detection.

Environment Variables

Template scripts receive these environment variables:

VariableDescriptionExample
BURNER_NAME User-provided project name my-experiment
BURNER_PATH Full path to project directory /home/user/.burner/projects/260115-my-experiment
BURNER_DATED_NAME Dated folder name 260115-my-experiment