@capgo/cli
Version:
A CLI to upload to capgo servers
36 lines (35 loc) • 1.79 kB
TypeScript
import type { FC } from 'react';
import type { OnboardingProgress, OnboardingResult } from '../types.js';
interface AppProps {
/**
* Capgo lookup key (progress files, saved credentials, Capgo SaaS build
* API). Resolved by `getAppId()`, which prefers
* `config.plugins.CapacitorUpdater.appId` over `config.appId` so dev-tunnel
* sandboxes can override the Capgo-side identifier without renaming the
* iOS bundle. Do NOT use for Apple-side operations — see
* `iosBundleIdInitial`.
*/
appId: string;
/**
* Default value for the iOS bundle ID used for Apple-side operations
* (cert lookup, profile filtering, ensureBundleId, createProfile, and the
* provisioning_map key). Sourced from `config.appId` directly — what
* `cap sync` writes into project.pbxproj's PRODUCT_BUNDLE_IDENTIFIER.
* When pbxproj's Release id and config.appId disagree, the wizard adopts the
* authoritative Release id (verify-app confirms it remotely). command.ts
* falls back to `appId` if config.appId is missing, so this prop is always a
* valid string.
*/
iosBundleIdInitial: string;
initialProgress: OnboardingProgress | null;
/** Resolved iOS directory from capacitor.config (defaults to 'ios') */
iosDir: string;
/** Optional Capgo API key passed via -a/--apikey flag; takes precedence over saved key */
apikey?: string;
/** Reports the wizard outcome to the shell when it reaches build-complete, so
* the caller prints an accurate post-exit message + durable summary instead of
* always claiming success. Never fires on cancel/missing-platform exits. */
onResult?: (result: OnboardingResult) => void;
}
declare const OnboardingApp: FC<AppProps>;
export default OnboardingApp;