UNPKG

@visionfi/server-cli

Version:

Command-line interface for VisionFI Server SDK

34 lines (33 loc) 1.09 kB
/** * Configuration management for VisionFI CLI * Copyright (c) 2024-2025 VisionFI. All Rights Reserved. */ import { VisionFI, VisionFIServerConfig } from '@visionfi/server-sdk'; export interface CLIConfig extends VisionFIServerConfig { /** Authentication method */ authMethod?: 'file' | 'adc' | 'env' | 'impersonate'; /** Service account path for authentication (when authMethod=file) */ serviceAccountPath?: string; /** Service account email to impersonate (when authMethod=impersonate) */ impersonateServiceAccount?: string; /** Output format preference */ outputFormat?: 'json' | 'table' | 'yaml'; /** Enable debug output */ debug?: boolean; } /** * Load configuration from file or environment */ export declare function loadConfig(): CLIConfig; /** * Save configuration to file */ export declare function saveConfig(config: CLIConfig): void; /** * Get config file path */ export declare function getConfigPath(): string; /** * Create a VisionFI client with proper authentication */ export declare function createClient(): VisionFI;