Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
5f4e721
add --add option to create & extract question prompting for addons
kizivat Sep 8, 2025
ebe1d46
Merge branch 'main' into create-add-one-go
kizivat Sep 8, 2025
0848b54
rmv log
jycouet Oct 3, 2025
2b9a0a2
hisplay help after conflicts
jycouet Oct 3, 2025
a4a6e30
Merge branch 'main' of github.com:sveltejs/cli into pr/kizivat/695
jycouet Oct 3, 2025
b596a97
update // TODO_ONE
jycouet Oct 3, 2025
1630915
Merge branch 'main' into create-add-one-go
jycouet Oct 5, 2025
e93518c
Merge branch 'main' of github.com:sveltejs/cli into create-add-one-go
jycouet Oct 16, 2025
82ee099
Merge branch 'main' of github.com:sveltejs/cli into create-add-one-go
jycouet Oct 18, 2025
b93269c
Merge branch 'main' of github.com:sveltejs/cli into create-add-one-go
jycouet Oct 26, 2025
c3b1145
createVirtualWorkspace first step
jycouet Oct 26, 2025
1695e31
args
jycouet Oct 26, 2025
4c425ad
easier to read
jycouet Oct 26, 2025
e66e861
feat(cli): `npx sv create` now supports a new argument `--add`
jycouet Oct 26, 2025
8ff8c17
Merge branch 'main' of github.com:sveltejs/cli into create-add-one-go
jycouet Nov 8, 2025
a981ca2
the only easy stuff
jycouet Nov 8, 2025
f43b4f1
check
jycouet Nov 8, 2025
d9d39fa
refacto workspace & workspaceOptions
jycouet Nov 8, 2025
7b502a8
lint & check
jycouet Nov 8, 2025
7227e16
fixing mcp issue
jycouet Nov 8, 2025
1526721
fix packagemanager issue
jycouet Nov 8, 2025
2fbfe0b
linting power
jycouet Nov 8, 2025
3614d0a
draft show args
jycouet Nov 8, 2025
ca855e2
add args
jycouet Nov 8, 2025
5a01ce2
better error escape
jycouet Nov 8, 2025
c78f68c
okay delay some questions
jycouet Nov 8, 2025
e63ec9b
show args changeset
jycouet Nov 8, 2025
8a0608b
also in add
jycouet Nov 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/smooth-foxes-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'sv': patch
---

feat(cli): `npx sv create` now supports a new argument `--add` to add add-ons to the project in the same command.
5 changes: 5 additions & 0 deletions .changeset/wide-ducks-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'sv': patch
---

feat(cli): show args used so that you can run the cli without any prompt next time
10 changes: 10 additions & 0 deletions documentation/docs/20-commands/10-sv-create.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ Whether and how to add typechecking to the project:

Prevent typechecking from being added. Not recommended!

### `--add [add-ons...]`

Add add-ons to the project in the `create` command. Following the same format as [sv add](sv-add#Usage).

Example:

```sh
npx sv create --add eslint prettier
```

### `--no-add-ons`

Run the command without the interactive add-ons prompt
Expand Down
2 changes: 2 additions & 0 deletions packages/addons/mcp/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ export default defineAddon({

for (const ide of options.ide) {
const value = configurator[ide];

if (value === undefined) continue;
if ('other' in value) continue;

const { mcpServersKey, filePath, typeLocal, typeRemote, env, schema, command, args } = value;
Expand Down
Loading
Loading