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

Function commonOptions

packages/cli-v3/src/cli/common.ts:20–30  ·  view source on GitHub ↗
(command: Command)

Source from the content-addressed store, hash-verified

18export type CommonCommandOptions = z.infer<typeof CommonCommandOptions>;
19
20export function commonOptions(command: Command) {
21 return command
22 .option("--profile <profile>", "The login profile to use", "default")
23 .option("-a, --api-url <value>", "Override the API URL", "https://api.trigger.dev")
24 .option(
25 "-l, --log-level <level>",
26 "The CLI log level to use (debug, info, log, warn, error, none). This does not effect the log level of your trigger.dev tasks.",
27 "log"
28 )
29 .option("--skip-telemetry", "Opt-out of sending telemetry");
30}
31
32export class SkipLoggingError extends Error {}
33export class SkipCommandError extends Error {}

Callers 6

configureDevCommandFunction · 0.85
configureDeployCommandFunction · 0.85
configureWhoamiCommandFunction · 0.85
configureLoginCommandFunction · 0.85
configureInitCommandFunction · 0.85
configureLogoutCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…