trigger.dev
Version:
A Command-Line Interface for Trigger.dev projects
24 lines (23 loc) • 994 B
TypeScript
import { CliApiClient } from "../../apiClient.js";
import type { CommonCommandOptions } from "../../cli/common.js";
export declare function getPatApiClient(options: CommonCommandOptions): Promise<CliApiClient>;
/**
* Creates a project, activating the Free plan first if the organization has no plan yet.
* If activation isn't possible (self-hosted, no billing permission), the original
* "select a plan" error is returned so the user knows what to do.
*/
export declare function createProjectWithFreePlanFallback(apiClient: CliApiClient, orgParam: string, name: string): Promise<import("@trigger.dev/core/v3/zodfetch").ApiResult<{
id: string;
externalRef: string;
name: string;
slug: string;
createdAt: Date;
defaultRegion?: string | null | undefined;
defaultRuntime?: "bun" | "node" | "node-22" | "node-24" | "node-26" | null | undefined;
organization: {
id: string;
title: string;
slug: string;
createdAt: Date;
};
}>>;