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

Function listProfiles

packages/cli-v3/src/commands/list-profiles.ts:48–67  ·  view source on GitHub ↗
(options: ListProfilesOptions)

Source from the content-addressed store, hash-verified

46}
47
48export async function listProfiles(options: ListProfilesOptions) {
49 const authConfig = readAuthConfigFile();
50
51 if (!authConfig) {
52 logger.info("No profiles found");
53 return;
54 }
55
56 const profiles = Object.keys(authConfig);
57
58 log.message("Profiles:");
59
60 for (const profile of profiles) {
61 const profileConfig = authConfig[profile];
62
63 log.info(`${profile}${profileConfig?.apiUrl ? ` - ${chalkGrey(profileConfig.apiUrl)}` : ""}`);
64 }
65
66 outro("Retrieve account info by running whoami --profile <profile>");
67}

Callers 1

listProfilesCommandFunction · 0.85

Calls 4

readAuthConfigFileFunction · 0.85
chalkGreyFunction · 0.85
keysMethod · 0.80
infoMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…