@capgo/cli
Version:
A CLI to upload to capgo servers
24 lines (23 loc) • 770 B
TypeScript
interface Options {
apikey?: string;
local: boolean;
supaHost?: string;
supaAnon?: string;
}
export type LoginMethod = 'browser' | 'paste';
type LoginMethodPrompt = (options: {
message: string;
options: Array<{
value: LoginMethod;
label: string;
}>;
}) => Promise<unknown>;
export declare const LOGIN_METHOD_OPTIONS: Array<{
value: LoginMethod;
label: string;
}>;
export declare function chooseLoginMethod(prompt?: LoginMethodPrompt): Promise<LoginMethod>;
export declare function doLoginExists(): boolean;
export declare function loginInternal(apikey: string | undefined, options: Options, silent?: boolean): Promise<string>;
export declare function login(apikey: string, options: Options): Promise<void>;
export {};