Skip to content

Commit 12bef0a

Browse files
authored
feat: env command in the cli (#2485)
* Add a CLI command to list and view env vars * Add changeset * Restrict pemissions on env files created with `env pull` * Escape env vars when exporting to file * Switch changeset to patch
1 parent 5567f49 commit 12bef0a

File tree

3 files changed

+448
-0
lines changed

3 files changed

+448
-0
lines changed

.changeset/serious-doors-call.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
Added new CLI command to list and view environment variables

packages/cli-v3/src/cli/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Command } from "commander";
22
import { configureAnalyzeCommand } from "../commands/analyze.js";
33
import { configureDeployCommand } from "../commands/deploy.js";
44
import { configureDevCommand } from "../commands/dev.js";
5+
import { configureEnvCommand } from "../commands/env.js";
56
import { configureInitCommand } from "../commands/init.js";
67
import { configureListProfilesCommand } from "../commands/list-profiles.js";
78
import { configureLoginCommand } from "../commands/login.js";
@@ -28,6 +29,7 @@ program
2829
configureLoginCommand(program);
2930
configureInitCommand(program);
3031
configureDevCommand(program);
32+
configureEnvCommand(program);
3133
configureDeployCommand(program);
3234
configurePromoteCommand(program);
3335
configureWhoamiCommand(program);

0 commit comments

Comments
 (0)