Skip to content

Commit 657cd28

Browse files
committed
fix env file option
1 parent 1f3729e commit 657cd28

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

docs/snippets/cli-commands-deploy.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import CommonOptions from '/snippets/cli-options-common.mdx';
22
import ProjectRefOption from '/snippets/cli-options-project-ref.mdx';
3+
import EnvFileOption from '/snippets/cli-options-env-file.mdx';
34

45
Run the command like this:
56

@@ -39,10 +40,7 @@ You can also setup [GitHub Actions](/github-actions) to deploy your tasks automa
3940
Defaults to `prod` but you can specify `staging`.
4041
</ParamField>
4142

42-
<ParamField body="Env file" type="--env">
43-
Load environment variables from a file. This will only hydrate the `process.env` of the CLI
44-
process, not the tasks.
45-
</ParamField>
43+
<EnvFileOption />
4644

4745
<ParamField body="Dry run" type="--dry-run">
4846
Create a deployable build but don't deploy it. Prints out the build path so you can inspect it.

docs/snippets/cli-commands-develop.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import CommonOptions from '/snippets/cli-options-common.mdx';
22
import ProjectRefOption from '/snippets/cli-options-project-ref.mdx';
3+
import EnvFileOption from '/snippets/cli-options-env-file.mdx';
34

45
This runs a server on your machine that can execute Trigger.dev tasks:
56

@@ -33,10 +34,7 @@ It is worth noting that each task runs in a separate Node process. This means th
3334

3435
<ProjectRefOption />
3536

36-
<ParamField body="Env file" type="--env">
37-
Pass a custom path to an env file. We automatically detect `.env`, `.env.local`,
38-
`.env.development`, and `.env.development.local` files.
39-
</ParamField>
37+
<EnvFileOption />
4038

4139
<ParamField body="Skip update check" type="--skip-update-check">
4240
Skip checking for `@trigger.dev` package updates.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<ParamField body="Env file" type="--env-file">
2+
Load environment variables from a file. This will only hydrate the `process.env` of the CLI
3+
process, not the tasks.
4+
</ParamField>

0 commit comments

Comments
 (0)