@aerocorp/cli
Version:
AeroCorp CLI 5.1.0 - Future-Proofed Enterprise Infrastructure with Live Preview, Tunneling & Advanced DevOps
78 lines • 1.91 kB
TypeScript
/**
* AeroCorp CLI 5.0.0 - Enhanced Coolify Service
* Implements the battle-tested patterns from the deployment guide
*/
export interface CoolifyConfig {
url: string;
token: string;
timeout?: number;
}
export interface DeploymentOptions {
app?: string;
uuid?: string;
tag?: string;
branch?: string;
pr?: number;
environment?: string;
}
export interface PreviewOptions {
pr: number;
app: string;
branch: string;
subdomain?: string;
}
export declare class CoolifyService {
private configService;
private client;
private baseUrl;
constructor();
/**
* Health check using /api/version endpoint as recommended in the guide
*/
healthCheck(): Promise<boolean>;
/**
* Deploy application using Coolify's /deploy endpoint
*/
deploy(options: DeploymentOptions): Promise<any>;
/**
* Create PR preview deployment
*/
createPreview(options: PreviewOptions): Promise<string>;
/**
* Destroy PR preview deployment
*/
destroyPreview(prNumber: number, appUuid: string): Promise<void>;
/**
* List applications
*/
listApplications(): Promise<any[]>;
/**
* Get application logs
*/
getLogs(appUuid: string, lines?: number): Promise<void>;
/**
* Fallback SSH logs method
*/
private getLogsViaSSH;
/**
* Setup Coolify authentication with proper error handling
*/
setupAuth(url: string, token: string): Promise<boolean>;
/**
* Check if user is authenticated
*/
isAuthenticated(): boolean;
/**
* Get auth headers for API requests
*/
getAuthHeaders(): Record<string, string>;
/**
* Get Coolify URL
*/
getCoolifyUrl(): string;
/**
* Authenticate with root token (from environment)
*/
private authenticateWithRootToken;
}
//# sourceMappingURL=coolify.d.ts.map