Skip to content

Commit a494a67

Browse files
committed
Updates @v4-beta to @latest
1 parent 5c3b039 commit a494a67

File tree

4 files changed

+21
-25
lines changed

4 files changed

+21
-25
lines changed

docs/cli-preview-archive.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ Run the command like this:
1717
<CodeGroup>
1818

1919
```bash npm
20-
npx trigger.dev@v4-beta preview archive
20+
npx trigger.dev@latest preview archive
2121
```
2222

2323
```bash pnpm
24-
pnpm dlx trigger.dev@v4-beta preview archive
24+
pnpm dlx trigger.dev@latest preview archive
2525
```
2626

2727
```bash yarn
28-
yarn dlx trigger.dev@v4-beta preview archive
28+
yarn dlx trigger.dev@latest preview archive
2929
```
3030

3131
</CodeGroup>
@@ -35,7 +35,7 @@ It will archive the preview branch, automatically detecting the branch name from
3535
## Arguments
3636

3737
```
38-
npx trigger.dev@v4-beta preview archive [path]
38+
npx trigger.dev@latest preview archive [path]
3939
```
4040

4141
<ProjectPathArg />

docs/cli-switch.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ Run the command like this:
1717
<CodeGroup>
1818

1919
```bash npm
20-
npx trigger.dev@v4-beta switch [profile]
20+
npx trigger.dev@latest switch [profile]
2121
```
2222

2323
```bash pnpm
24-
pnpm dlx trigger.dev@v4-beta switch [profile]
24+
pnpm dlx trigger.dev@latest switch [profile]
2525
```
2626

2727
```bash yarn
28-
yarn dlx trigger.dev@v4-beta switch [profile]
28+
yarn dlx trigger.dev@latest switch [profile]
2929
```
3030

3131
</CodeGroup>
@@ -35,7 +35,7 @@ It will switch to the specified profile. If no profile is specified, it will lis
3535
## Arguments
3636

3737
```
38-
npx trigger.dev@v4-beta switch [profile]
38+
npx trigger.dev@latest switch [profile]
3939
```
4040

4141
<ParamField body="Profile" type="[profile]">

docs/deployment/preview-branches.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
run: npm install
9797

9898
- name: Deploy preview branch
99-
run: npx trigger.dev@v4-beta deploy --env preview
99+
run: npx trigger.dev@latest deploy --env preview
100100
env:
101101
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
102102
```
@@ -116,21 +116,21 @@ You can manually specify the branch using `--branch <branch-name>` in the deploy
116116
Creating and deploying a preview branch manually is easy:
117117

118118
```bash
119-
npx trigger.dev@v4-beta deploy --env preview
119+
npx trigger.dev@latest deploy --env preview
120120
```
121121

122122
This will create and deploy a preview branch, automatically detecting the git branch. If for some reason the auto-detection doesn't work it will let you know and tell you do this:
123123

124124
```bash
125-
npx trigger.dev@v4-beta deploy --env preview --branch your-branch-name
125+
npx trigger.dev@latest deploy --env preview --branch your-branch-name
126126
```
127127

128128
### Archiving a preview branch
129129

130130
You can manually archive a preview branch with the CLI:
131131

132132
```bash
133-
npx trigger.dev@v4-beta preview archive
133+
npx trigger.dev@latest preview archive
134134
```
135135

136136
Again we will try auto-detect the current branch. But you can specify the branch name with `--branch <branch-name>`.

docs/self-hosting/docker.mdx

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ docker compose logs -f webapp
102102
6. (optional) To initialize a new project, run the following command:
103103

104104
```bash
105-
npx trigger.dev@v4-beta init -p <project-ref> -a http://localhost:8030
105+
npx trigger.dev@latest init -p <project-ref> -a http://localhost:8030
106106
```
107107

108108
<Warning>
@@ -349,16 +349,12 @@ TRIGGER_IMAGE_TAG=v4.0.0-v4-beta.21
349349
350350
This section highlights some of the CLI commands and options that are useful when self-hosting. Please check the [CLI reference](/cli-introduction) for more in-depth documentation.
351351
352-
<Warning>
353-
While v4 is in beta, always use `@v4-beta` instead of `@latest`. For example: `npx trigger.dev@v4-beta dev`
354-
</Warning>
355-
356352
### Login
357353
358354
To avoid being redirected to [Trigger.dev Cloud](https://cloud.trigger.dev) when using the CLI, you need to specify the URL of your self-hosted instance with the `--api-url` or `-a` flag. For example:
359355
360356
```bash
361-
npx trigger.dev@v4-beta login -a http://trigger.example.com
357+
npx trigger.dev@latest login -a http://trigger.example.com
362358
```
363359
364360
Once you've logged in, you shouldn't have to specify the URL again with other commands.
@@ -368,7 +364,7 @@ Once you've logged in, you shouldn't have to specify the URL again with other co
368364
You can specify a profile when logging in. This allows you to easily use the CLI with multiple instances of Trigger.dev. For example:
369365
370366
```bash
371-
npx trigger.dev@v4-beta login -a http://trigger.example.com \
367+
npx trigger.dev@latest login -a http://trigger.example.com \
372368
--profile self-hosted
373369
```
374370
@@ -377,37 +373,37 @@ Logging in with a new profile will also make it the new default profile.
377373
To use a specific profile, you can use the `--profile` flag with other commands:
378374
379375
```bash
380-
npx trigger.dev@v4-beta dev --profile self-hosted
376+
npx trigger.dev@latest dev --profile self-hosted
381377
```
382378
383379
To list all your profiles, use the `list-profiles` command:
384380
385381
```bash
386-
npx trigger.dev@v4-beta list-profiles
382+
npx trigger.dev@latest list-profiles
387383
```
388384
389385
To remove a profile, use the `logout` command:
390386
391387
```bash
392-
npx trigger.dev@v4-beta logout --profile self-hosted
388+
npx trigger.dev@latest logout --profile self-hosted
393389
```
394390
395391
To switch to a different profile, use the `switch` command:
396392
397393
```bash
398394
# To run interactively
399-
npx trigger.dev@v4-beta switch
395+
npx trigger.dev@latest switch
400396
401397
# To switch to a specific profile
402-
npx trigger.dev@v4-beta switch self-hosted
398+
npx trigger.dev@latest switch self-hosted
403399
```
404400
405401
### Whoami
406402
407403
It can be useful to check you are logged into the correct instance. Running this will also show the API URL:
408404
409405
```bash
410-
npx trigger.dev@v4-beta whoami
406+
npx trigger.dev@latest whoami
411407
```
412408
413409
## CI / GitHub Actions

0 commit comments

Comments
 (0)