forge-deploy-cli
Version:
Professional CLI for local deployments with automatic subdomain routing, SSL certificates, and infrastructure management
45 lines • 1.15 kB
TypeScript
/**
* Get the system's public IP address for subdomain routing
*/
export declare function getPublicIP(): Promise<string>;
/**
* Get the system's local IP address (fallback)
*/
export declare function getSystemIP(): string;
/**
* Get external IP address if needed
*/
export declare function getExternalIP(): Promise<string>;
/**
* Check if running on Windows
*/
export declare function isWindows(): boolean;
/**
* Check if running as administrator/root
*/
export declare function isElevated(): boolean;
/**
* Check if required system privileges are available and warn user
*/
export declare function checkSystemPrivileges(): boolean;
/**
* Ensure command is run with proper privileges or provide guidance
*/
export declare function requireElevatedPrivileges(command: string): void;
/**
* Get system information for debugging
*/
export declare function getSystemInfo(): {
platform: NodeJS.Platform;
arch: string;
hostname: string;
uptime: number;
localIP: string;
isElevated: boolean;
nodeVersion: string;
memory: {
total: number;
free: number;
};
};
//# sourceMappingURL=system.d.ts.map