Commands API Reference

CLI command implementations.

BurnCommand
Burner.Commands

Deletes burner projects. Supports deleting by name, age, or interactively.

BurnCommandSettings
Burner.Commands

Settings for the burn command.

Properties

Name

Specific project name to delete (optional).

Days

Delete projects older than specified days.

Force

Skip confirmation prompt.

Interactive

Interactive mode: select projects to delete.

All

Delete ALL burner projects.

ConfigCommand
Burner.Commands

Manages Burner CLI configuration settings.

ConfigCommandSettings
Burner.Commands

Settings for the config command.

Properties

BurnerHome

Set the burner home directory.

BurnerTemplates

Set the burner templates directory.

AutoCleanDays

Set auto-cleanup age in days (0 to disable).

Editor

Set the default editor command (e.g., code, cursor, rider).

Show

Show current configuration.

ShowPath

Show config file path.

OpenTemplates

Open the templates directory in file explorer.

OpenHome

Open the burner home directory in file explorer.

ImportCommand
Burner.Commands

Imports the current directory as a burner project.

ImportCommandSettings
Burner.Commands

Settings for the import command.

Properties

Name

Custom name for the imported project (defaults to current folder name).

Copy

Copy the folder instead of moving it.

Force

Skip confirmation prompt when moving.

ListCommand
Burner.Commands

Lists all burner projects with their metadata.

ListCommandSettings
Burner.Commands

Settings for the list command.

Properties

ShowAll

Show all details including full paths.

NewCommand
Burner.Commands

Creates a new burner project from a template.

NewCommandSettings
Burner.Commands

Settings for the new command.

Properties

Template

Template to use (dotnet, web, or custom). Shows available templates if not provided.

Name

Project name (auto-generated if not provided).

Directory

Target directory (uses default burner home if not specified).

Explorer

Open in file explorer after creation.

Code

Open in editor after creation (uses configured editor).

Interactive

Run template interactively (for templates requiring user input).

OpenCommand
Burner.Commands

Opens a burner project in editor, file explorer, or outputs the path.

OpenCommandSettings
Burner.Commands

Settings for the open command.

Properties

Name

Project name to open (optional, interactive if not provided).

Explorer

Open in file explorer instead of terminal.

Code

Open in editor (uses configured editor).

Interactive

Interactive mode: select project from list.

StatsCommand
Burner.Commands

Displays statistics about burner projects including disk usage, age distribution, and template breakdown.

TemplatesCommand
Burner.Commands

Lists all available project templates.

Methods

ShowTemplatesTable(TemplateService templateService, BurnerConfig config)

Displays a formatted table of available templates.

Source Files