Skip to content

Commit 7adea43

Browse files
authored
docs: recommend v6 codemod command for v5 to v6 migration (#11400)
<!-- Welcome to contributing to AI SDK! We're excited to see your changes. We suggest you read the following contributing guide we've created before submitting: https://github.com/vercel/ai/blob/main/CONTRIBUTING.md --> ## Background <!-- Why was this change necessary? --> ## Summary <!-- What did you change? --> ## Manual Verification <!-- For features & bugfixes. Please explain how you *manually* verified that the change works end-to-end as expected (excluding automated tests). Remove the section if it's not needed (e.g. for docs). --> ## Checklist <!-- Do not edit this list. Leave items unchecked that don't apply. If you need to track subtasks, create a new "## Tasks" section Please check if the PR fulfills the following requirements: --> - [ ] Tests have been added / updated (for bug fixes / features) - [x] Documentation has been added / updated (for bug fixes / features) - [ ] A _patch_ changeset for relevant packages has been added (for bug fixes / features - run `pnpm changeset` in the project root) - [ ] I have reviewed this pull request (self-review) ## Future Work <!-- Feel free to mention things not covered by this PR that can be done in future PRs. Remove the section if it's not needed. --> ## Related Issues <!-- List related issues here, e.g. "Fixes #1234". Remove the section if it's not needed. -->
1 parent 0e8291e commit 7adea43

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

content/docs/08-migration-guides/24-migration-guide-6-0.mdx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,18 @@ Codemods are transformations that run on your codebase automatically. They
3737
allow you to easily apply many changes without having to manually go through
3838
every file.
3939

40-
You can run all codemods provided as part of the 6.0 upgrade process by running
41-
the following command from the root of your project:
42-
43-
```sh
44-
npx @ai-sdk/codemod upgrade
45-
```
46-
47-
To run only the v6 codemods (v5 → v6 migration):
40+
You can run all v6 codemods (v5 → v6 migration) by running the following command
41+
from the root of your project:
4842

4943
```sh
5044
npx @ai-sdk/codemod v6
5145
```
5246

47+
<Note>
48+
There is also an `npx @ai-sdk/codemod upgrade` command, but it runs all
49+
codemods from all versions (v4, v5, and v6). Use `v6` when upgrading from v5.
50+
</Note>
51+
5352
Individual codemods can be run by specifying the name of the codemod:
5453

5554
```sh

0 commit comments

Comments
 (0)