UNPKG

balena-cli

Version:

The official balena Command Line Interface

95 lines (94 loc) 5.05 kB
import { Command } from '@oclif/core'; import type { Interfaces } from '@oclif/core'; import type { BalenaSDK } from 'balena-sdk'; 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; 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; 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<Omit<import("balena-sdk/typings/pinejs-client-core").SelectResultObject<import("balena-sdk").Application, "slug">, "is_for__device_type"> & import("balena-sdk/typings/pinejs-client-core").ExpandResourceExpandObject<import("balena-sdk").Application, { is_for__device_type: { $select: "slug"; }; }>>; 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>; }