UNPKG

balena-cli

Version:

The official balena Command Line Interface

102 lines (101 loc) 5.11 kB
import { Command } from '@oclif/core'; import type { Interfaces } from '@oclif/core'; import type { Application, BalenaSDK, Pine } from 'balena-sdk'; declare const getApplicationOptions: { readonly $select: "slug"; readonly $expand: { readonly is_for__device_type: { readonly $select: "slug"; }; }; }; export default class ConfigGenerateCmd extends Command { static description: string; static examples: string[]; static flags: { version: Interfaces.OptionFlag<string, Interfaces.CustomOptions>; fleet: { exclusive: string[]; name: string; char?: Interfaces.AlphabetLowercase | Interfaces.AlphabetUppercase; summary?: string; description?: string; helpLabel?: string; helpGroup?: string; env?: string; hidden?: boolean; required?: boolean; dependsOn?: string[]; exactlyOne?: string[]; relationships?: import("@oclif/core/lib/interfaces/parser").Relationship[]; deprecated?: true | Interfaces.Deprecation; aliases?: string[]; charAliases?: (Interfaces.AlphabetLowercase | Interfaces.AlphabetUppercase)[]; deprecateAliases?: boolean; noCacheDefault?: boolean; atLeastOne?: string[]; type: "option"; helpValue?: string | string[]; options?: readonly string[]; multiple?: boolean; multipleNonGreedy?: boolean; delimiter?: ","; allowStdin?: boolean | "only"; parse: import("@oclif/core/lib/interfaces/parser").FlagParser<string | undefined, string, Interfaces.CustomOptions>; defaultHelp?: import("@oclif/core/lib/interfaces/parser").FlagDefaultHelp<string | undefined, Interfaces.CustomOptions>; input: string[]; default?: import("@oclif/core/lib/interfaces/parser").FlagDefault<string | undefined, Interfaces.CustomOptions>; }; dev: Interfaces.BooleanFlag<boolean>; secureBoot: Interfaces.BooleanFlag<boolean>; device: { exclusive: string[]; name: string; char?: Interfaces.AlphabetLowercase | Interfaces.AlphabetUppercase; summary?: string; description?: string; helpLabel?: string; helpGroup?: string; env?: string; hidden?: boolean; required?: boolean; dependsOn?: string[]; exactlyOne?: string[]; relationships?: import("@oclif/core/lib/interfaces/parser").Relationship[]; deprecated?: true | Interfaces.Deprecation; aliases?: string[]; charAliases?: (Interfaces.AlphabetLowercase | Interfaces.AlphabetUppercase)[]; deprecateAliases?: boolean; noCacheDefault?: boolean; atLeastOne?: string[]; type: "option"; helpValue?: string | string[]; options?: readonly string[]; multiple?: boolean; multipleNonGreedy?: boolean; delimiter?: ","; allowStdin?: boolean | "only"; parse: import("@oclif/core/lib/interfaces/parser").FlagParser<string | undefined, string, Interfaces.CustomOptions>; defaultHelp?: import("@oclif/core/lib/interfaces/parser").FlagDefaultHelp<string | undefined, Interfaces.CustomOptions>; input: string[]; default?: import("@oclif/core/lib/interfaces/parser").FlagDefault<string | undefined, Interfaces.CustomOptions>; }; deviceApiKey: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>; deviceType: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>; 'generate-device-api-key': Interfaces.BooleanFlag<boolean>; output: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>; network: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>; wifiSsid: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>; wifiKey: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>; appUpdatePollInterval: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>; 'provisioning-key-name': Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>; 'provisioning-key-expiry-date': Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>; }; static authenticated: boolean; getApplication(balena: BalenaSDK, fleet: string): Promise<NonNullable<Pine.OptionsToResponse<Application['Read'], typeof getApplicationOptions, string>>>; run(): Promise<void>; protected readonly missingDeviceOrAppMessage: string; protected readonly deviceTypeNotAllowedMessage = "The --deviceType option can only be used alongside the --fleet option"; protected validateOptions(options: Interfaces.InferredFlags<typeof ConfigGenerateCmd.flags>): Promise<void>; } export {};