Skip to content

Commit 5d0d71c

Browse files
committed
Added a section on upgrading your project
1 parent 1239a3c commit 5d0d71c

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

docs/v3/upgrading-from-v2.mdx

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The main difference is that things in v3 are far simpler. That's because in v3 y
1616
3. Just use official SDKs, not integrations.
1717
4. `task`s are the new primitive, not `job`s.
1818

19-
## OpenAI example
19+
## OpenAI example comparison
2020

2121
This is a (very contrived) example that does a long OpenAI API call (>10s), stores the result in a database, waits for 5 mins, and then returns the result.
2222

@@ -135,7 +135,7 @@ export const openaiTask = task({
135135
});
136136
```
137137

138-
## Triggering tasks
138+
## Triggering tasks comparison
139139

140140
### v2
141141

@@ -171,6 +171,28 @@ async function yourBackendFunction() {
171171
}
172172
```
173173

174+
## Upgrading your project
175+
176+
<Steps>
177+
178+
<Step title="Upgrade the v2 Trigger.dev packages">
179+
180+
You can run this command to upgrade all the packages to the beta:
181+
182+
```bash
183+
npx @trigger.dev/cli@beta update --to beta
184+
```
185+
186+
</Step>
187+
188+
<Step title="Follow the v3 quick start">
189+
190+
Follow the [v3 quick start](/v3/quick-start) to get started with v3.
191+
192+
</Step>
193+
194+
</Steps>
195+
174196
## Using v2 together with v3
175197

176198
You can use v2 and v3 in the same codebase. This can be useful where you already have v2 jobs or where we don't support features you need (yet).

0 commit comments

Comments
 (0)