fix: use deno run for init instead of deno create before 2.3.0 (#3746)

## Summary
- Reverts all references from `deno create @fresh/init` back to `deno
run -Ar jsr:@fresh/init` across docs, READMEs, homepage, and CLI help
text
- Removes the deprecation warning in `packages/init/src/mod.ts` that
told users to switch to `deno create`

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bartek Iwańczuk
2026-03-31 09:19:14 +02:00
committed by GitHub
co-authored by Claude Opus 4.6
parent a872a70e5f
commit 3a51f82da6
10 changed files with 12 additions and 16 deletions
+3 -3
View File
@@ -48,13 +48,13 @@ Initialize a new Fresh project. This will create all the necessary files
for a new project.
To generate a project in the './foobar' subdirectory:
${colors.rgb8("deno create @fresh/init ./foobar", 245)}
${colors.rgb8("deno run -Ar jsr:@fresh/init ./foobar", 245)}
To generate a project in the current directory:
${colors.rgb8("deno create @fresh/init .", 245)}
${colors.rgb8("deno run -Ar jsr:@fresh/init .", 245)}
${colors.rgb8("USAGE:", 3)}
${colors.rgb8("deno create @fresh/init [DIRECTORY]", 245)}
${colors.rgb8("deno run -Ar jsr:@fresh/init [DIRECTORY]", 245)}
${colors.rgb8("OPTIONS:", 3)}
${colors.rgb8("--force", 2)} Overwrite existing files
+1 -5
View File
@@ -2,11 +2,7 @@ import { parseArgs } from "@std/cli/parse-args";
import { initProject } from "./init.ts";
import { InitError } from "./init.ts";
// deno-lint-ignore no-console
console.warn(
"\x1b[33m%s\x1b[0m",
`Warning: "deno run -Ar jsr:@fresh/init" is deprecated. Use "deno create @fresh/init" instead.`,
);
// Note: "deno run -Ar jsr:@fresh/init" is the recommended way to create a new project.
const flags = parseArgs(Deno.args, {
boolean: ["force", "tailwind", "vscode", "docker", "help", "builder"],