Skip to content

fix(init)!: drop init command from @nuxt/cli - #1420

Merged
danielroe merged 1 commit into
mainfrom
refactor/split-init
Aug 1, 2026
Merged

fix(init)!: drop init command from @nuxt/cli#1420
danielroe merged 1 commit into
mainfrom
refactor/split-init

Conversation

@danielroe

@danielroe danielroe commented Aug 1, 2026

Copy link
Copy Markdown
Member

🔗 Linked issue

📚 Description

it must be an edge case to use an already installed nuxt to initialise another one, so this moves nuxt init into create nuxt (or nuxi init) instead ...

this saves us ~220 KB in an installed nuxt project

@pkg-pr-new

pkg-pr-new Bot commented Aug 1, 2026

Copy link
Copy Markdown
  • nuxt-cli-playground

    npm i https://pkg.pr.new/create-nuxt@1420
    
    npm i https://pkg.pr.new/nuxi@1420
    
    npm i https://pkg.pr.new/@nuxt/cli@1420
    

commit: 6fc043c

@danielroe
danielroe added this pull request to the merge queue Aug 1, 2026
Merged via the queue into main with commit 11ddd7a Aug 1, 2026
18 of 19 checks passed
@danielroe
danielroe deleted the refactor/split-init branch August 1, 2026 22:48
@github-actions github-actions Bot mentioned this pull request Aug 1, 2026
@codspeed-hq

codspeed-hq Bot commented Aug 1, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 2 untouched benchmarks


Comparing refactor/split-init (6fc043c) with main (afacc1e)

Open in CodSpeed

@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 28d8ed71-47f3-45ad-94e9-4f857ea9c9f5

📥 Commits

Reviewing files that changed from the base of the PR and between afacc1e and 6fc043c.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (19)
  • knip.json
  • packages/create-nuxt/package.json
  • packages/create-nuxt/src/completions.ts
  • packages/create-nuxt/src/init.ts
  • packages/create-nuxt/src/main.ts
  • packages/create-nuxt/src/run.ts
  • packages/create-nuxt/test/e2e/init.spec.ts
  • packages/create-nuxt/test/unit/init.spec.ts
  • packages/create-nuxt/test/unit/network-failures.spec.ts
  • packages/nuxi/src/launcher.ts
  • packages/nuxi/src/main.ts
  • packages/nuxt-cli/package.json
  • packages/nuxt-cli/src/commands/init.ts
  • packages/nuxt-cli/src/completions.ts
  • packages/nuxt-cli/src/main.ts
  • packages/nuxt-cli/src/utils/update-lazy.ts
  • packages/nuxt-cli/test/e2e/commands.spec.ts
  • packages/nuxt-cli/test/unit/commands/network-failures.spec.ts
  • packages/nuxt-cli/test/unit/help.spec.ts

📝 Walkthrough

Walkthrough

The PR moves the full init scaffolding implementation to packages/create-nuxt. It updates nuxi routing and create-nuxt tests. The former nuxt-cli implementation becomes a hidden compatibility command that directs execution to create-nuxt. Init completions, self-update handling, dependencies, help snapshots, and end-to-end tests are updated accordingly.

Estimated code review effort: 4 (Complex) | ~60 minutes

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch refactor/split-init

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant