UNPKG

trigger.dev

Version:

A Command-Line Interface for Trigger.dev projects

17 lines (16 loc) 614 B
import type { Command } from "commander"; import { CliApiClient } from "../apiClient.js"; import type { LoginResult } from "../utilities/session.js"; export declare function configureLoginCommand(program: Command): Command; export type LoginOptions = { defaultApiUrl?: string; embedded?: boolean; profile?: string; silent?: boolean; browser?: boolean; }; export declare function login(options?: LoginOptions): Promise<LoginResult>; export declare function getPersonalAccessToken(apiClient: CliApiClient, authorizationCode: string): Promise<{ token: string; obfuscatedToken: string; }>;