You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will open your browser to authenticate. Once authenticated, you'll need to select or create a project in the Trigger.dev dashboard to get your project reference (e.g., `proj_abc123`).
@@ -32,23 +32,23 @@ Install the required packages based on your package manager:
32
32
<CodeGroup>
33
33
34
34
```bash npm
35
-
npm add @trigger.dev/sdk@v4-beta
36
-
npm add --save-dev @trigger.dev/build@v4-beta
35
+
npm add @trigger.dev/sdk@latest
36
+
npm add --save-dev @trigger.dev/build@latest
37
37
```
38
38
39
39
```bash pnpm
40
-
pnpm add @trigger.dev/sdk@v4-beta
41
-
pnpm add -D @trigger.dev/build@v4-beta
40
+
pnpm add @trigger.dev/sdk@latest
41
+
pnpm add -D @trigger.dev/build@latest
42
42
```
43
43
44
44
```bash yarn
45
-
yarn add @trigger.dev/sdk@v4-beta
46
-
yarn add -D @trigger.dev/build@v4-beta
45
+
yarn add @trigger.dev/sdk@latest
46
+
yarn add -D @trigger.dev/build@latest
47
47
```
48
48
49
49
```bash bun
50
-
bun add @trigger.dev/sdk@v4-beta
51
-
bun add -D @trigger.dev/build@v4-beta
50
+
bun add @trigger.dev/sdk@latest
51
+
bun add -D @trigger.dev/build@latest
52
52
```
53
53
54
54
</CodeGroup>
@@ -82,13 +82,13 @@ You can run the Trigger.dev CLI in two ways:
82
82
83
83
```bash
84
84
# npm
85
-
npx trigger.dev@v4-beta dev
85
+
npx trigger.dev@latest dev
86
86
87
87
# pnpm
88
-
pnpm dlx trigger.dev@v4-beta dev
88
+
pnpm dlx trigger.dev@latest dev
89
89
90
90
# yarn
91
-
yarn dlx trigger.dev@v4-beta dev
91
+
yarn dlx trigger.dev@latest dev
92
92
```
93
93
94
94
### Option 2: Add as dev dependency
@@ -98,7 +98,7 @@ Add the CLI to your `package.json`:
98
98
```json
99
99
{
100
100
"devDependencies": {
101
-
"trigger.dev": "4.0.0-v4-beta.26"
101
+
"trigger.dev": "^4.0.0"
102
102
}
103
103
}
104
104
```
@@ -120,11 +120,11 @@ Make sure to pin the version of the CLI to the same version as the SDK that you
120
120
121
121
```json
122
122
"devDependencies": {
123
-
"trigger.dev": "4.0.0-v4-beta.26",
124
-
"@trigger.dev/build": "4.0.0-v4-beta.26"
123
+
"trigger.dev": "^4.0.0",
124
+
"@trigger.dev/build": "^4.0.0"
125
125
},
126
126
"dependencies": {
127
-
"@trigger.dev/sdk": "4.0.0-v4-beta.26"
127
+
"@trigger.dev/sdk": "^4.0.0"
128
128
}
129
129
```
130
130
@@ -239,16 +239,16 @@ If you're building a React frontend application and want to display task status
239
239
240
240
```bash
241
241
# npm
242
-
npm install @trigger.dev/react-hooks@v4-beta
242
+
npm install @trigger.dev/react-hooks@latest
243
243
244
244
# pnpm
245
-
pnpm add @trigger.dev/react-hooks@v4-beta
245
+
pnpm add @trigger.dev/react-hooks@latest
246
246
247
247
# yarn
248
-
yarn add @trigger.dev/react-hooks@v4-beta
248
+
yarn add @trigger.dev/react-hooks@latest
249
249
250
250
# bun
251
-
bun add @trigger.dev/react-hooks@v4-beta
251
+
bun add @trigger.dev/react-hooks@latest
252
252
```
253
253
254
254
### Basic usage
@@ -396,10 +396,10 @@ packages:
396
396
"name": "@repo/tasks",
397
397
"version": "0.0.0",
398
398
"dependencies": {
399
-
"@trigger.dev/sdk": "4.0.0-v4-beta.26"
399
+
"@trigger.dev/sdk": "^4.0.0"
400
400
},
401
401
"devDependencies": {
402
-
"@trigger.dev/build": "4.0.0-v4-beta.26"
402
+
"@trigger.dev/build": "^4.0.0"
403
403
},
404
404
"exports": {
405
405
".": "./src/trigger/index.ts",
@@ -509,7 +509,7 @@ Run the development server for the tasks package:
509
509
```bash
510
510
# From the root of your monorepo
511
511
cd packages/tasks
512
-
npx trigger.dev@v4-beta dev
512
+
npx trigger.dev@latest dev
513
513
514
514
# Or using turbo (if you add dev:trigger script to tasks package.json)
515
515
turbo run dev:trigger --filter=@repo/tasks
@@ -527,13 +527,13 @@ This approach installs Trigger.dev directly in individual apps that need backgro
527
527
{
528
528
"name": "web",
529
529
"dependencies": {
530
-
"@trigger.dev/sdk": "4.0.0-v4-beta.26",
530
+
"@trigger.dev/sdk": "^4.0.0",
531
531
"next": "^15.2.1",
532
532
"react": "^19.0.0",
533
533
"react-dom": "^19.0.0"
534
534
},
535
535
"devDependencies": {
536
-
"@trigger.dev/build": "4.0.0-v4-beta.26"
536
+
"@trigger.dev/build": "^4.0.0"
537
537
}
538
538
}
539
539
```
@@ -612,7 +612,7 @@ export async function triggerHelloWorld(name: string) {
-**Backwardscompatibility.**WetryourbesttomaintaincompatibilitywitholderCLIversions, but it's not always possible. If you don't want to update your CLI, you can lock your Docker images to that specific version.
327
325
- **Ensuring full feature support.** Sometimes, new CLI releases will also require new or updated platform features. Running unlocked images can make any issues difficult to debug. Using a specific tag can help here as well.
328
326
329
-
By default, the images will point at the latest versioned release via the `v4-beta` tag. You can override this by specifying a different tag in your `.env` file. For example:
327
+
By default, the images will point at the latest versioned release via the `latest` tag. You can override this by specifying a different tag in your `.env` file. For example:
330
328
331
329
```bash
332
-
TRIGGER_IMAGE_TAG=v4.0.0-v4-beta.21
330
+
TRIGGER_IMAGE_TAG=v4.0.0
333
331
```
334
332
335
333
## Troubleshooting
@@ -408,7 +406,7 @@ npx trigger.dev@latest whoami
408
406
409
407
## CI/GitHubActions
410
408
411
-
When running the CLI in a CI environment, your login profiles won't be available. Instead, you can use the `TRIGGER_API_URL` and `TRIGGER_ACCESS_TOKEN` environment
409
+
WhenrunningtheCLIinaCIenvironment, yourloginprofileswon't be available. Instead, you can use the `TRIGGER_API_URL` and `TRIGGER_ACCESS_TOKEN` environment
0 commit comments