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
By default, the Trigger.dev webapp sends telemetry data to our servers. This data is used to improve the product and is not shared with third parties. If you would like to opt-out of this, you can set the `TRIGGER_TELEMETRY_DISABLED` environment variable in your `.env` file. The value doesn't matter, it just can't be empty. For example:
288
+
Once you have everything set up, you will periodically want to update your Docker images. You can easily do this by running the update script and restarting your services:
292
289
293
290
```bash
294
-
TRIGGER_TELEMETRY_DISABLED=1
291
+
./update.sh
292
+
./stop.sh && ./start.sh
293
+
```
294
+
295
+
Sometimes, we will make more extensive changes that require pulling updated compose files, scripts, etc from our docker repo:
296
+
297
+
```bash
298
+
git pull
299
+
./stop.sh && ./start.sh
300
+
```
301
+
302
+
Occasionally, you may also have to update your `.env` file, but we will try to keep these changes to a minimum. Check the `.env.example` file for new variables.
303
+
304
+
### From beta
305
+
306
+
If you're coming from the beta CLI package images, you will need to:
307
+
-**Stash you changes.** If you made any changes, stash them with `git stash`.
308
+
-**Switch branches.** We moved back to main. Run `git checkout main` in your docker repo.
309
+
-**Pull in updates.** We've added a new container for [Electric](https://github.com/electric-sql/electric) and made some other improvements. Run `git pull` to get the latest updates.
310
+
-**Apply your changes.** If you stashed your changes, apply them with `git stash pop`.
311
+
-**Restart all services.** Run `./stop.sh && ./start.sh` and you're good to go.
312
+
313
+
In summary, run this wherever you cloned the docker repo:
314
+
315
+
```bash
316
+
# if you made changes
317
+
git stash
318
+
319
+
# switch to the main branch and pull the latest changes
320
+
git checkout main
321
+
git pull
322
+
323
+
# if you stashed your changes
324
+
git stash pop
325
+
326
+
# restart your services
327
+
./stop.sh && ./start.sh
328
+
```
329
+
330
+
## Version locking
331
+
332
+
There are several reasons to lock the version of your Docker images:
333
+
-**Backwards compatibility.** We try our best to maintain compatibility with older CLI versions, 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.
334
+
-**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.
335
+
336
+
By default, the images will point at the latest versioned release via the `v3` tag. You can override this by specifying a different tag in your `.env` file. For example:
337
+
338
+
```bash
339
+
TRIGGER_IMAGE_TAG=v3.0.4
295
340
```
296
341
297
342
## CLI usage
@@ -303,7 +348,7 @@ This section highlights some of the CLI commands and options that are useful whe
303
348
To avoid being redirected to the [Trigger.dev Cloud](https://cloud.trigger.dev) login page when using the CLI, you can specify the URL of your self-hosted instance with the `--api-url` or `-a` flag. For example:
304
349
305
350
```bash
306
-
npx trigger.dev@beta login -a http://trigger.example.com
351
+
npx trigger.dev@latest login -a http://trigger.example.com
307
352
```
308
353
309
354
Once you've logged in, the CLI will remember your login details and you won't need to specify the URL again with other commands.
@@ -313,38 +358,38 @@ Once you've logged in, the CLI will remember your login details and you won't ne
313
358
You can specify a custom profile when logging in. This allows you to easily use the CLI with our cloud product and your self-hosted instance at the same time. For example:
314
359
315
360
```
316
-
npx trigger.dev@beta login -a http://trigger.example.com --profile my-profile
361
+
npx trigger.dev@latest login -a http://trigger.example.com --profile my-profile
317
362
```
318
363
319
364
You can then use this profile with other commands:
320
365
321
366
```
322
-
npx trigger.dev@beta dev --profile my-profile
367
+
npx trigger.dev@latest dev --profile my-profile
323
368
```
324
369
325
370
To list all your profiles, use the `list-profiles` command:
326
371
327
372
```
328
-
npx trigger.dev@beta list-profiles
373
+
npx trigger.dev@latest list-profiles
329
374
```
330
375
331
376
#### Verify login
332
377
333
378
It can be useful to check you have successfully logged in to the correct instance. You can do this with the `whoami` command, which will also show the API URL:
On [Trigger.dev Cloud](https://cloud.trigger.dev), we build deployments remotely and push those images for you. When self-hosting you will have to do that locally yourself. This can be done with the `--self-hosted` and `--push` flags. For example:
@@ -353,3 +398,12 @@ When running the CLI in a CI environment, your login profiles won't be available
353
398
variables to point at your self-hosted instance and authenticate.
354
399
355
400
For more detailed instructions, see the [GitHub Actions guide](/github-actions).
401
+
402
+
403
+
## Telemetry
404
+
405
+
By default, the Trigger.dev webapp sends telemetry data to our servers. This data is used to improve the product and is not shared with third parties. If you would like to opt-out of this, you can set the `TRIGGER_TELEMETRY_DISABLED` environment variable in your `.env` file. The value doesn't matter, it just can't be empty. For example:
0 commit comments