MCPcopy
hub / github.com/triggerdotdev/trigger.dev / configureUpdateCommand

Function configureUpdateCommand

packages/cli-v3/src/commands/update.ts:23–40  ·  view source on GitHub ↗
(program: Command)

Source from the content-addressed store, hash-verified

21export type UpdateCommandOptions = z.infer<typeof UpdateCommandOptions>;
22
23export function configureUpdateCommand(program: Command) {
24 return program
25 .command("update")
26 .description("Updates all @trigger.dev/* packages to match the CLI version")
27 .argument("[path]", "The path to the directory that contains the package.json file", ".")
28 .option(
29 "-l, --log-level <level>",
30 "The CLI log level to use (debug, info, log, warn, error, none). This does not effect the log level of your trigger.dev tasks.",
31 "log"
32 )
33 .option("--skip-telemetry", "Opt-out of sending telemetry")
34 .action(async (path, options) => {
35 wrapCommandAction("dev", UpdateCommandOptions, options, async (opts) => {
36 await printStandloneInitialBanner(true);
37 await updateCommand(path, opts);
38 });
39 });
40}
41
42const triggerPackageFilter = /^@trigger\.dev/;
43

Callers 1

index.tsFile · 0.85

Calls 3

wrapCommandActionFunction · 0.85
updateCommandFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…