Runic.Create 0.10.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global Runic.Create --version 0.10.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Runic.Create --version 0.10.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Runic.Create&version=0.10.0
                    
nuke :add-package Runic.Create --version 0.10.0
                    

Runic.Create

Create a Runic application by answering a few questions:

dnx Runic.Create@<VERSION>

dnx ships with the .NET 10 SDK and runs the tool without installing it. The creator asks for the project name, frontend (React, Vue, Svelte or Angular), JavaScript package manager (npm, pnpm or Bun), Window host (Runic Desktop, which opens a native window, or CS-WebUI, which opens a browser window), ViewModel library (ReactiveUI or CommunityToolkit.Mvvm), and whether to add a test project. Each choice is described in one line. It then installs the matching Runic.Application.Templates version and runs dotnet new runic-app. The install goes to your dotnet new template store, as dotnet new install does, and replaces another installed version; an installed matching version is kept, whatever language the SDK uses. dotnet new uninstall Runic.Application.Templates removes it. Accepting every default creates a Runic Desktop and ReactiveUI project.

Pass an option to skip its question, or --yes to accept the defaults for every option you leave out. The questions are written to standard error and asked only when standard input and standard error are a terminal; otherwise, and with RUNIC_COMMANDLINE_NO_INPUT=1, the defaults apply. Escape or Ctrl+C at a question cancels. Arguments for the creator follow --:

dnx Runic.Create@<VERSION> -- MyApp --frontend svelte --package-manager bun --host cswebui --view-models toolkit

After creating a project, the creator prints the next steps and two commands that reproduce it without questions: the dnx Runic.Create invocation and the equivalent dotnet new install and dotnet new runic-app commands. --dry-run prints those commands without creating anything. The documentation picker builds the same commands in the browser.

Option Choices Default
--frontend react, vue, svelte, angular react
--package-manager npm, pnpm, bun npm
--host desktop, cswebui desktop
--linux-gtk 3, 4: the GTK version of Runic Desktop on Linux; Windows, macOS and cswebui are the same with either, so the creator asks for it, and prints it, only with --host desktop unless you pass it 3
--view-models reactiveui, toolkit reactiveui
--tests Adds a TUnit test project for the Window No test project
--nix Adds a Nix flake that builds the application with the Runic SDK's buildRunicApplication No flake
--packaging Adds packaging/package.mjs, which packages the application as MSIX, a signed .app in a disk image, or a Flatpak No packaging recipes
--output, -o A directory The project name
--template-source An additional NuGet source for the template

As with dotnet new, --output apps/MyApp or -o apps/MyApp chooses the destination directory. The creator's global --format human|json option selects the command output format.

The creator has no subcommand to name: dnx Runic.Create -- create creates a project named create.

The frontend, package manager, host, Linux GTK and ViewModel choices, --tests, --nix and --packaging come from the template itself, so dotnet new runic-app --help lists the same options. With --tests, the next steps include dotnet test --project MyApp.Tests.

JSON output

--format json writes one runic.commandline/1 response to standard output with "command": "create" and the runic.create/2 payload:

{
  "name": "MyApp",
  "directory": "apps/MyApp",
  "fullPath": "/work/apps/MyApp",
  "version": "<VERSION>",
  "options": { "frontend": "react", "package-manager": "npm", "host": "desktop", "linux-gtk": "3", "view-models": "reactiveui" },
  "toggles": { "tests": true, "nix": false, "packaging": false },
  "commands": [
    "dotnet new install Runic.Application.Templates@<VERSION>",
    "dotnet new runic-app --name MyApp --output apps/MyApp --frontend react --package-manager npm --host desktop --linux-gtk 3 --view-models reactiveui --tests"
  ],
  "reproduceCommand": "dnx Runic.Create@<VERSION> -- MyApp --output apps/MyApp --frontend react --package-manager npm --host desktop --linux-gtk 3 --view-models reactiveui --tests",
  "created": true
}
Property Meaning
name The project name.
directory The destination as given with --output, or the project name.
fullPath The absolute path of directory.
version The creator and template version.
options The selected value of each choice option, keyed by its long name.
toggles Whether each Boolean option is on, keyed by its long name.
commands The dotnet new install and dotnet new runic-app commands.
reproduceCommand The dnx Runic.Create invocation that creates the same project without questions.
created true when the project was created; false for --dry-run, which runs no command and leaves the directory untouched.

JSON output never asks questions; options you do not pass use their defaults. A failed run sets success to false and carries the RCREATE code in fault.code. The output of dotnet new goes to standard error.

Exit codes

Exit code Meaning
0 The project was created, or --dry-run printed its commands.
1 The project could not be created: dotnet new install or dotnet new runic-app failed (RCREATE004, RCREATE005).
2 Usage or validation error, such as an unknown option value, an invalid name or a non-empty destination (RCREATE001 to RCREATE003).
3 Internal failure.
130 Cancelled, for example with Ctrl+C.

See the getting-started guide, source, and issues. Preview package; MIT licensed.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.23.0 52 11/20/2026
0.22.0 54 11/18/2026
0.21.0 93 11/17/2026
0.20.0 90 11/16/2026
0.19.0 104 11/14/2026
0.18.0 94 11/13/2026
0.17.1 107 11/11/2026
0.17.0 96 11/10/2026
0.16.0 105 11/4/2026
0.15.1 99 11/2/2026
0.15.0 107 10/31/2026
0.14.0 106 10/30/2026
0.13.0 105 10/29/2026
0.12.1 105 10/27/2026
0.12.0 100 10/27/2026
0.11.0 108 10/25/2026
0.10.0 104 10/22/2026
0.9.1 103 10/21/2026
0.9.0 102 10/21/2026
0.8.0-preview.6 70 10/19/2026
Loading failed