Skip to content

refactor(cli): rename vp new to vp create with shorthand expansion#570

Merged
fengmk2 merged 1 commit intomainfrom
improve-commands
Feb 10, 2026
Merged

refactor(cli): rename vp new to vp create with shorthand expansion#570
fengmk2 merged 1 commit intomainfrom
improve-commands

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented Feb 9, 2026

Rename the new command to create to align with npm create / pnpm create
conventions. Add shorthand expansion so vp create vite resolves to create-vite
and vp create @tanstack/start resolves to @tanstack/create-start.

  • Rename Rust enum variant NewCreate and module new.rscreate.rs
  • Update JS routing to handle create command
  • Add expandCreateShorthand() with unit tests
  • Rename help section "Vite+ Commands" → "Core Commands", reorder entries
  • Update all docs, snap tests, CI workflows, and install scripts

@fengmk2 fengmk2 self-assigned this Feb 9, 2026
Copy link
Copy Markdown
Member Author

fengmk2 commented Feb 9, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

Rename the `new` command to `create` to align with `npm create` / `pnpm create`
conventions. Add shorthand expansion so `vp create vite` resolves to `create-vite`
and `vp create @tanstack/start` resolves to `@tanstack/create-start`.

- Rename Rust enum variant `New` → `Create` and module `new.rs` → `create.rs`
- Update JS routing to handle `create` command
- Add `expandCreateShorthand()` with unit tests
- Rename help section "Vite+ Commands" → "Core Commands", reorder entries
- Update all docs, snap tests, CI workflows, and install scripts
@fengmk2 fengmk2 marked this pull request as ready for review February 10, 2026 00:32
@linear
Copy link
Copy Markdown

linear Bot commented Feb 10, 2026

VP-186 Rename `vp new` to `vp create`, `vp lib` to `vp pack`

As discussed in Discord.

  • vp create should have the shorthand expansion behavior from npm create (vp create vite -> invokes create-vite on npm)

@fengmk2 fengmk2 merged commit a29ac83 into main Feb 10, 2026
30 of 34 checks passed
@fengmk2 fengmk2 deleted the improve-commands branch February 10, 2026 00:38
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.

2 participants