import { CommandLineOptions } from '../../Command/commandDefinition'; export declare const OPTION_LIST: readonly [{ readonly name: "applet-path"; readonly type: StringConstructor; readonly description: "Path to the applet file or the project folder depending on the entry file. Relative to the command or absolute."; }, { readonly name: "entry-file-path"; readonly type: StringConstructor; readonly description: "Path to the applet entry file. Relative to the command or absolute."; }, { readonly name: "no-default-organization"; readonly type: BooleanConstructor; readonly description: "Prevent using the defaultOrganizationUid from ~/.sosrc"; }, { readonly name: "organization-uid"; readonly type: StringConstructor; readonly description: "Organization UID"; }, { readonly name: "applet-uid"; readonly type: StringConstructor; readonly description: "Applet UID"; }, { readonly name: "update-package-config"; readonly type: BooleanConstructor; readonly description: string; }, { readonly name: "yes"; readonly type: BooleanConstructor; readonly description: "Allow to upload new applet or override existing version without confirmation step"; }, { readonly name: "verbose"; readonly type: BooleanConstructor; readonly description: "Outputs all files to upload"; }]; /** * Uploads the current applet version to the signageOS platform, making it available * for deployment to devices. The command supports both single-file and multi-file applets, * with automatic version management and conflict detection. * * The upload process validates package.json requirements, creates or updates applet versions, * and handles file packaging according to .sosignore, .npmignore, and .gitignore rules. * * @group Development:15 * * @example * ```bash * # Upload applet from current directory * sos applet upload * * # Upload with specific applet path * sos applet upload --applet-path ./dist * * # Upload with custom entry file * sos applet upload --entry-file-path src/main.js * * # Upload with organization override * sos applet upload --organization-uid abc123def456 * * # Skip confirmation prompts (auto-selects if only 1 org available) * sos applet upload --yes * * # CI/CD: Non-interactive upload with specific organization * sos applet upload --yes --organization-uid abc123def456 * * # Verbose output with detailed file information * sos applet upload --verbose * * # Update package.json with new applet UID * sos applet upload --update-package-config * * # Complete CI/CD example * sos applet upload --yes --organization-uid abc123def456 --update-package-config * ``` * * **Note for CI/CD and --yes flag:** * When using `--yes` with multiple organizations: * - If you have only 1 organization: it will be auto-selected * - If you have multiple organizations: you MUST specify `--organization-uid` * - Alternative: Set a default organization with `sos organization set-default` * * ``` * * @throws {Error} When package.json is missing or invalid * @throws {Error} When applet path or entry file cannot be found * @throws {Error} When organization or applet access is denied * @throws {GatewayError} When upload fails due to server issues * @throws {NotFoundError} When specified applet or organization doesn't exist * * @since 0.4.0 */ export declare const appletUpload: { name: "upload"; description: string; optionList: readonly [{ readonly name: "applet-path"; readonly type: StringConstructor; readonly description: "Path to the applet file or the project folder depending on the entry file. Relative to the command or absolute."; }, { readonly name: "entry-file-path"; readonly type: StringConstructor; readonly description: "Path to the applet entry file. Relative to the command or absolute."; }, { readonly name: "no-default-organization"; readonly type: BooleanConstructor; readonly description: "Prevent using the defaultOrganizationUid from ~/.sosrc"; }, { readonly name: "organization-uid"; readonly type: StringConstructor; readonly description: "Organization UID"; }, { readonly name: "applet-uid"; readonly type: StringConstructor; readonly description: "Applet UID"; }, { readonly name: "update-package-config"; readonly type: BooleanConstructor; readonly description: string; }, { readonly name: "yes"; readonly type: BooleanConstructor; readonly description: "Allow to upload new applet or override existing version without confirmation step"; }, { readonly name: "verbose"; readonly type: BooleanConstructor; readonly description: "Outputs all files to upload"; }]; commands: never[]; run(options: CommandLineOptions): Promise; };