-
-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
Description
The documentation for the sv migrate
command states that you can run npx sv migrate
or npx sv migrate [migration]
https://svelte.dev/docs/cli/sv-migrate#Migrations
When running npx sv migrate
the command throws an error
error: missing required argument 'migration'
The docs say that sv migrate
delegates to svelte-migrate
. When I run npx svelte-migrate
I get the following expected output:
$ npx svelte-migrate
Need to install the following packages:
[email protected]
Ok to proceed? (y) y
┌ Welcome to the svelte-migrate CLI! (v1.10.1)
│
◆ Which migration would you like to run?
│ ● app-state
│ ○ package
│ ○ routes
│ ○ self-closing-tags
│ ○ svelte-4
│ ○ svelte-5
│ ○ sveltekit-2
└
I thought that maybe migrate
had a --help
option (which it doesn't) so when I ran that it gave me an error but also gave me the expected output:
$ npx sv migrate --help ✔ 4m
┌ Welcome to the svelte-migrate CLI! (v1.10.1)
│
▲ Invalid migration "--help" provided.
│
◆ Which migration would you like to run?
│ ● app-state
│ ○ package
│ ○ routes
│ ○ self-closing-tags
│ ○ svelte-4
│ ○ svelte-5
│ ○ sveltekit-2
└
There was a previous issue (#302) regarding this error but the discussion seemed to diverge from the output error.
It seems that either sv migrate
should show the same output as svelte-migrate
or removed from the docs as an option.