@@ -17,8 +17,9 @@ packages that provide project templates.
1717deno create [OPTIONS] [PACKAGE] [-- [ARGS]...]
1818```
1919
20- By default, unprefixed package names are resolved from JSR. You can use the
21- ` npm: ` or ` jsr: ` prefix to be explicit, or use the ` --npm ` / ` --jsr ` flags.
20+ The ` [PACKAGE] ` argument requires either a ` jsr: ` or ` npm: ` prefix, or one of
21+ the ` --jsr ` / ` --npm ` flags. Unprefixed package names error out with
22+ ` Missing 'jsr:' or 'npm:' prefix. `
2223
2324## How it works
2425
@@ -42,15 +43,15 @@ Package resolution differs between npm and JSR:
4243}
4344```
4445
45- When you run ` deno create @my-scope/my-template ` , Deno looks for the ` ./create `
46- export and runs it as the scaffolding script.
46+ When you run ` deno create jsr: @my-scope/my-template ` , Deno looks for the
47+ ` ./create ` export and runs it as the scaffolding script.
4748
4849## Examples
4950
5051Create a project from a JSR package:
5152
5253``` sh
53- deno create @fresh/init
54+ deno create jsr: @fresh/init
5455```
5556
5657Create a project from an npm package:
@@ -68,11 +69,11 @@ deno create --npm create-vite my-app
6869Pass arguments to the template package:
6970
7071``` sh
71- deno create @fresh/init -- --force
72+ deno create jsr: @fresh/init -- --force
7273```
7374
7475## Flags
7576
7677- ` --npm ` - Treat unprefixed package names as npm packages
77- - ` --jsr ` - Treat unprefixed package names as JSR packages (default)
78+ - ` --jsr ` - Treat unprefixed package names as JSR packages
7879- ` -y, --yes ` - Bypass the prompt and run with full permissions
0 commit comments