ende create
The ende create command scaffolds a new project from a template package
published on JSR.
Usage
ende create [OPTIONS] [PACKAGE] [-- [ARGS]...]
The [PACKAGE] argument needs a jsr: prefix, or the --jsr flag for an
unprefixed name.
How it works
A JSR package acts as a template by defining a ./create entry point in its
ende.json:
{
"name": "@my-scope/my-template",
"version": "1.0.0",
"exports": {
".": "./mod.ts",
"./create": "./create.ts"
}
}When you run ende create jsr:@my-scope/my-template, Ende looks for the
./create export and runs it as the scaffolding script.
Examples
Create a project from a JSR package:
ende create jsr:@my-scope/my-template
Pass arguments to the template package:
ende create jsr:@my-scope/my-template -- --force
Flags
--jsr- Treat unprefixed package names as JSR packages-y, --yes- Bypass the prompt and run with full permissions
Command line usage:
createCreate a project from a template
Options
--jsr
Treat unprefixed package names as JSR packages.
--yes, -y
Bypass the prompt and run with full permissions.