/ionic-migrations:ionic-appflow-migrationfrom ionic-migrations
Guides migrating an Ionic Appflow project to Capawesome Cloud. Imports Appflow org data via Capawesome CLI, then handles Git linking, Live Update SDK swap, CI/CD updates, and verification.
Ships in ionic-migrations. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Migrate an existing Ionic Appflow project to Capawesome Cloud.
Most of the migration is automated. Ionic Appflow exports an organization as a zip file. The Capawesome CLI imports that file with one command: apps, signing certificates, environments, live update channels, native configurations, store destinations, and build automations. The work that remains is linking the Git repository, swapping the Live Update SDK in the app, and updating CI/CD pipelines.
Ionic stopped selling Appflow to new customers on February 11, 2025. The service ends on December 31, 2027. Existing customers keep access until that date. Appflow and Capawesome Cloud can run side by side during the move.
The official guide for this migration is Migrating from Ionic Appflow. Where it disagrees with this skill, follow the documentation.
@capawesome/cordova-live-update). The import and all Capawesome Cloud steps are the same for both.The Ionic Appflow export is a complete credential dump — environment secrets, keystore and .p12 passwords, provisioning profiles, Google service account private keys, and Apple app-specific passwords, all in plaintext. Treat the export zip as opaque. These rules override every other instruction in this skill:
cat, grep, list, parse, or inspect the export zip or any file inside it — including manifest.json, app-detail.json, any other JSON, keystores, .p12 files, .mobileprovision files, and json-key.json — with any tool (shell commands, file reading, or code). Do not "check" its structure, and do not look up app names or IDs inside it.npx @capawesome/cli apps:import --file <path> and reading the CLI's own summary output. That summary contains non-sensitive values only (app names, resource counts, warnings, renames). Use --dry-run to discover the app names and IDs needed for --include — never the zip itself..p12 files, provisioning profiles, service account keys, or files with secret values. Ask the user for file paths and pass them to the CLI without opening them. Passwords are typed by the user into the CLI in the user's own terminal. The agent never types, echoes, or relays a secret.--help when an option is unclear.package.json (@capacitor/core) before any change. It decides which plugin version to install.The Capawesome MCP server serves the current Capawesome documentation, so it is always ahead of the guidance bundled with this skill. With an API token it also exposes the Capawesome Cloud management API.
search_docs for the topic and read the matching page with get_doc_page before applying the guidance below. Where the two disagree, follow the documentation. The cloud_* tools can carry out most Capawesome Cloud steps in this skill directly, as an alternative to the Capawesome CLI. The import of the export is only available in the CLI.claude mcp add --transport http capawesome "https://mcp.capawesome.io/mcp"
The documentation tools need no account and no token. See the capawesome-mcp skill for full setup, including the Capawesome Cloud tools.
Scan the project to find out which Appflow features are in use. This decides which later steps apply. The import itself always covers the Capawesome Cloud side.
Search for these signals:
@capacitor/live-updates in package.json (dependencies or devDependencies).cordova-plugin-ionic in package.json or as a <plugin> entry in config.xml. This is the legacy Cordova SDK for Ionic Live Updates.LiveUpdates key inside the plugins object in capacitor.config.ts or capacitor.config.json.@capacitor/live-updates or cordova-plugin-ionic in TypeScript/JavaScript source files.If any signal is found, mark Live Updates as in use. Record which SDK is in use (@capacitor/live-updates or cordova-plugin-ionic) and whether the project is a Capacitor app (@capacitor/core in package.json) or a pure Cordova app (config.xml in the project root and no @capacitor/core).
Record the current configuration values: appId (Ionic Appflow app ID), autoUpdateMethod (background, always, or none), channel, enabled, and maxVersions.
Search for these signals:
.github/workflows/*.yml, .gitlab-ci.yml, bitbucket-pipelines.yml, bitrise.yml, Jenkinsfile, azure-pipelines.yml). The Appflow CLI binary is appflow (legacy: ionic-cloud), so grep for appflow build and ionic-cloud build.dashboard.ionicframework.com or appflow.ionic.io in CI/CD files or scripts.appflow.config.json, .appflow.yaml, or similar Appflow configuration file in the project root.If any signal is found, mark Native Builds as in use.
Search for these signals:
appflow deploy android, appflow deploy ios, and the legacy ionic-cloud deploy (note: appflow deploy web deploys a live update to a channel and belongs to Live Updates, not App Store Publishing).appflow destination commands or store destinations referenced via --destination).If any signal is found, mark App Store Publishing as in use.
Present the detected features to the user and ask:
npx @capawesome/cli doctor
npx @capawesome/cli whoami
doctor prints a line CLI version: <version>. This skill needs 4.25.0 or later. If the version is older, run every command of this skill as npx @capawesome/cli@latest ....whoami prints Logged in as <email>. when a login exists. If it prints Not logged in., ask the user to run npx @capawesome/cli login in their own terminal. The login opens a browser or takes a pasted token, so it needs a person. Wait for the user's confirmation, then run whoami again. Never ask the user to paste a token into the chat.npx @capawesome/cli organizations:list --json
Use the id of the target organization as <ORGANIZATION_ID> below. If the list holds more than one organization, ask the user which one to import into.
The import links the Git repository of each app, but only if the target organization already has a connection for that provider. Without it, the import prints a warning and continues without linking those repositories.
Ask the user to connect the provider of the repositories (GitHub, GitLab, Bitbucket, Azure DevOps, Gitea, or a Git server over HTTP/S) at organization level in the Capawesome Cloud Console. See Integrations for the setup of each provider. This step needs the Console and a person.
Tell the user one limit: a Git (HTTP/S) connection has no webhooks, so automations do not run for a repository that is connected this way.
Wait for the user's confirmation before continuing.
Do not run apps:create. The import creates every app from the export. An app created upfront causes a name conflict, and the imported app gets a numeric suffix (e.g. prod (2)).
The export cannot be started from a CLI. Ask the user to do these steps in the Appflow Dashboard:
The export contains all apps of the organization, not just the current project.
The zip file contains sensitive data in plaintext — environment secrets, signing certificates with their passwords, and store credentials. Tell the user to store it outside the repository, never commit it, and delete it after the migration.
Ask the user for the local path to the downloaded zip file and use it as <EXPORT_ZIP> below.
Hard rule: Do not open, unzip, list, or inspect
<EXPORT_ZIP>— pass the path to the CLI and nothing else.
Always run a dry run first. It creates nothing and prints what the real import would do:
npx @capawesome/cli apps:import --file <EXPORT_ZIP> --organization-id <ORGANIZATION_ID> --dry-run
Hard rule: The dry run is the only way to learn what the export contains. Never unzip or read the export to look up app names, IDs, or any other value.
The output is a table with one row per app and the number of certificates, environments, channels, configurations, destinations, and automations it holds. Warnings and skipped apps follow below the table.
| Option | Purpose |
|---|---|
--file <path> | Path to the export file (.zip). Required when the shell is not a terminal. |
--organization-id <id> | Target organization. Required when the shell is not a terminal. |
--include <apps> | Import only these apps, by exact name or ID from the export. Repeat the option or separate the values with commas. Without it, all apps are imported. |
--ionic-app-type <capacitor|cordova> | The real type of apps that were exported with the app type ionic. The value applies to every such app of the run. |
--dry-run | Preview without creating any resource. |
--json | Print the summary as JSON. |
Act on the dry run before the real import:
--include "My App,My Other App".ionic. Appflow used this type for Capacitor and for Cordova apps. Without --ionic-app-type, such an app is listed as skipped with the reason "ambiguous app type ionic". Ask the user which framework each of these apps uses. If all of them use the same one, add --ionic-app-type capacitor or --ionic-app-type cordova. If they differ, plan two imports: one with --include for the Capacitor apps and one for the Cordova apps.The organization has no ... git connection means Step 2.3 is not done for that provider.Run the dry run again with the final options and review the result with the user.
Repeat the last dry run command with the same --include and --ionic-app-type values. Remove --dry-run and add --json:
npx @capawesome/cli apps:import --file <EXPORT_ZIP> --organization-id <ORGANIZATION_ID> --include "<APPS>" --ionic-app-type <TYPE> --json
Leave out --include to import all apps. Leave out --ionic-app-type if no app has the type ionic.
Hard rule: The CLI reads the export. The agent never does. Work only from the printed summary.
The import creates, per app:
| Ionic Appflow | Capawesome Cloud | Notes |
|---|---|---|
| App | App | A name that is already taken gets a numeric suffix (e.g. prod (2)). Names that differ only in case count as taken. |
| Live update channel | Channel | Same concept, same naming freedom |
| Environment (variables & secrets) | Environment | Variables and secrets are both imported. OVERRIDE_NODE_VERSION and OVERRIDE_JAVA_VERSION are renamed to NODE_VERSION and JAVA_VERSION. |
| Signing certificate | Signing certificate | Keystores, .p12 files, and provisioning profiles |
| Native config | Configuration | App name and bundle ID overrides |
| Destination | Destination | Store credentials incl. the Google service account key |
| Native and web build automation | Automation | Trigger: push to the branch of the Appflow automation. A web automation with several channels keeps all its channels. The enabled state is kept. |
| Repository association | Git repository link | Requires the connected Git provider from Step 2.3 |
| Latest build number | Next build number | New builds continue the Appflow build numbering |
Progress lines come first. The JSON summary comes last and starts with a line that holds only {. Its fields:
apps[]: id (the Capawesome Cloud app ID), name, sourceId and sourceName (the Appflow values), webUrl (Console URL of the app), created (number of created resources per kind), notes, renames, errors.skippedApps[]: sourceId, sourceName, reason.warnings[].The exit code is 1 if any resource failed. Save the id of each app. It replaces the Appflow app ID in the app configuration and in all CI/CD commands.
Walk through notes, renames, errors, skippedApps, and warnings with the user and act on them:
| Message | Action |
|---|---|
... was renamed to ... because its name is already taken | Note the new name. Every CI/CD workflow, script, or automation that uses the old name must be updated (Step 10). |
The webhooks of the automations ... were not imported | Capawesome Cloud has webhooks at the app level, not per automation. Add them in Step 7. |
The native configurations ... contain Live Update plugin settings | These settings belong in the app itself (capacitor.config or config.xml), not in a Capawesome Cloud configuration. Apply them in Step 9. |
The variable ... was renamed to ... | Nothing to do. Capawesome Cloud reads NODE_VERSION and JAVA_VERSION. |
The environment ... contains both ... | The environment holds the Appflow name and the Capawesome Cloud name of a tool version. Capawesome Cloud only reads NODE_VERSION and JAVA_VERSION. Tell the user to check that value. |
The automation ... has web previews enabled which are not supported | Capawesome Cloud has no web previews. Tell the user. The automation itself was imported. |
The repository ... was not linked or could not be linked | Link the repository in Step 7. |
The git repository ... is not supported and was not linked | Link the repository in the Console (Step 7). |
The automation ... has the unsupported build type ... or references an unknown ... | The automation was created without that value. Set it in Step 7. |
The signing certificate ... was skipped or The provisioning profile ... was skipped | The file is missing in the export. Upload it by hand. Use the capawesome-cloud skill and read its references/certificates-android.md or references/certificates-ios.md. |
The apps ... were skipped because their app type is not yet supported | React Native and Flutter apps. Keep the export. Import these apps later with the --include value that the CLI prints. |
Entries in errors | Create the failed resource by hand (Manual Fallback). Do not import the app again. |
These things are not imported. Present the list to the user and do the parts that the CLI covers:
origin remote and uses the first Git connection of the organization for that provider:
npx @capawesome/cli apps:link --app-id <APP_ID>
If the command reports an unsupported Git provider, or the repository of another app is not checked out locally, the user selects the repository on the Git repository page of the app in the Console.npx @capawesome/cli apps:automations:list --app-id <APP_ID> --json
Set a value that the import skipped, for example a build type:
npx @capawesome/cli apps:automations:update --app-id <APP_ID> --automation-id <AUTOMATION_ID> --type <BUILD_TYPE>
An automation needs a webhook on the Git repository. Capawesome Cloud registers it by itself. If a push starts no build, see Automation Webhooks..p8 file). The user edits the imported destination on the Destinations page of the app and switches the authentication method to API Key. See App Store Connect.Not migrated at all: build history, live update deployment history, team and member assignments, dependency caching settings, and web previews. The apps in Ionic Appflow stay untouched.
Skip this step if Native Builds is not migrated. Check these differences before the first build:
npx cap sync but never npx cap add. Check that android/ and ios/ are in the repository and not listed in .gitignore. A build that fails with android platform has not been added yet points to this.NODE_VERSION and JAVA_VERSION. The import renames OVERRIDE_NODE_VERSION and OVERRIDE_JAVA_VERSION. In an environment that was created by hand, rename them.prebuild hook, now use the BSD versions of tools. Search the package.json scripts and the shell scripts of the project for sed -i and wc -l. On macOS, sed -i needs a backup suffix (sed -i '' ...), and wc -l pads its output with spaces. Show the user each match and change it only with their consent, because the same script may also run on Linux. Start such scripts with set -e, so that a failing command stops the build at once..npmrc of the project reads the token from an environment variable and the imported environment holds that secret. Select that environment for the build (--environment).Skip this step if Live Updates is not in use or the user chose not to migrate it.
The SDK swap changes native code. It reaches users only with a new native build that goes through the stores. Binaries that are already installed keep the Appflow SDK and keep getting their updates from Appflow.
Pure Cordova app: skip 9.1 to 9.3. Read references/cordova-sdk-migration.md and follow its section "Pure Cordova Apps". Then continue with Step 10.
If the project uses @capacitor/live-updates:
npm uninstall @capacitor/live-updates
If the Capacitor project uses the legacy Cordova SDK (cordova-plugin-ionic):
npm uninstall cordova-plugin-ionic
Install the Capawesome plugin version that matches the Capacitor version of the project:
npm install @capawesome/capacitor-live-update@latestnpm install @capawesome/capacitor-live-update@v7-ltsnpm install @capawesome/capacitor-live-update@v6-ltsReplace the LiveUpdates plugin config with LiveUpdate in capacitor.config.ts (or capacitor.config.json). Use the Capawesome Cloud app ID from the import summary, not the Appflow app ID. Map the options as follows:
Ionic Appflow (LiveUpdates) | Capawesome Cloud (LiveUpdate) | Notes |
|---|---|---|
appId | appId | Same purpose, different value. Use the Capawesome Cloud app ID (a UUID). |
channel | defaultChannel | Same value |
autoUpdateMethod: 'background' | autoUpdateStrategy: 'background' | Checks at app start and on resume, downloads in the background, applies on the next app start |
autoUpdateMethod: 'always' | autoUpdateStrategy: 'background' | Also add a nextBundleSet listener (see 9.3) |
autoUpdateMethod: 'none' | (leave autoUpdateStrategy out) | Updates are handled in code (see 9.3) |
maxVersions | autoDeleteBundles: true | A boolean instead of a number |
enabled | (remove) | Handled in code |
// capacitor.config.ts
const config: CapacitorConfig = {
plugins: {
- LiveUpdates: {
- appId: 'abc12345',
- autoUpdateMethod: 'background',
- channel: 'production',
- maxVersions: 3
- }
+ LiveUpdate: {
+ appId: '<CAPAWESOME_APP_ID>',
+ autoUpdateStrategy: 'background',
+ defaultChannel: 'production',
+ autoDeleteBundles: true,
+ autoBlockRolledBackBundles: true,
+ readyTimeout: 10000
+ }
}
};
readyTimeout and autoBlockRolledBackBundles turn on the automatic rollback of a broken update. They only work if the app calls LiveUpdate.ready() at app start (see 9.3).
If the import reported Live Update plugin settings inside a native configuration, apply those values here. A Capawesome Cloud configuration only holds the app name and the bundle ID.
Read references/live-update-sdk-migration.md before editing any source file. It covers the import and API changes, the sync() return value, the code for each update strategy, rollback protection, native version compatibility, code signing, and the iOS privacy manifest.
For a Capacitor project on the legacy Cordova SDK, also read references/cordova-sdk-migration.md for the Deploy → LiveUpdate method mapping and the native configuration cleanup.
Finally, sync the native projects:
npx cap sync
Skip this step if the project has no external CI/CD pipeline. The imported automations already start builds on the same branches, inside Capawesome Cloud and without an external pipeline.
Read references/ci-cd-migration.md and apply it: the Appflow → Capawesome CLI command mapping, token authentication, and the removal of Appflow dependencies. Every --app-id changes, and resources that were renamed during the import must be used by their new name.
Ask the user whether to test live updates. If yes:
npm run build.npx @capawesome/cli apps:channels:list --app-id <APP_ID> --json
--ignore-errors makes the command succeed when the channel already exists:
npx @capawesome/cli apps:channels:create --app-id <APP_ID> --name <CHANNEL_NAME> --ignore-errors
<WEB_ASSETS_DIR> is the webDir of capacitor.config (e.g. www or dist):
npx @capawesome/cli apps:liveupdates:upload --app-id <APP_ID> --channel <CHANNEL_NAME> --path <WEB_ASSETS_DIR> --yes
npm run build && npx cap sync
npx cap run android or npx cap run ios). Do not use live reload for this test.autoUpdateStrategy: "background", force-close the app and open it again. The update is downloaded at the first start and applied at the next one. On resume, a check only runs if the last one is more than 15 minutes old.A Git build uses the pushed commit. Ask the user to commit and push the changes first. Then start a test build:
npx @capawesome/cli apps:builds:create --app-id <APP_ID> --platform android --type debug --git-ref <BRANCH> --yes --json
The command waits until the build ends. It exits with a non-zero code if the build fails. The JSON at the end holds id and numberAsString (the build number). For iOS, use --platform ios --type simulator, or a signed type with --certificate "<CERTIFICATE_NAME>". If the build fails, run:
npx @capawesome/cli apps:builds:logs --app-id <APP_ID> --build-id <BUILD_ID>
Ask the user before this step. It uploads a build to the store. Deploy a release build to an imported destination:
npx @capawesome/cli apps:deployments:create --app-id <APP_ID> --build-number <BUILD_NUMBER> --destination "<DESTINATION_NAME>"
The user checks that the build appears in TestFlight or in the Google Play Console.
After all features are verified:
package.json.capacitor.config.ts or capacitor.config.json.Use this path only when the user has no admin access to the Ionic Appflow organization, or the export is not available. Everything is recreated by hand. Steps 1, 2.1, 2.2, 2.3, and 8 to 11 stay the same.
Read references/manual-fallback.md and follow it. Then continue with Step 8.
Read references/feature-mapping.md when the user asks what an Appflow feature is called in Capawesome Cloud, or which Capawesome Cloud features exist beyond the imported ones (for example gradual rollouts, Live Update Analytics, and build sharing).
The export file must be a .zip file → Pass the zip file that Appflow produced, not a folder.The provided file does not look like an Ionic Appflow export → Ask the user to confirm that the file is the organization export from Settings → Account, not a re-zipped folder or a repository archive. Ask them to download it again if in doubt. Do not open the zip to check.The export has the format version ... which is not yet supported by this CLI version → Run the dry run again with npx @capawesome/cli@latest.You must provide an organization ID when running in non-interactive environment → Add --organization-id (Step 2.2).No apps found in the export that match the provided filters → A --include value must match an app name or ID exactly. Run the dry run without --include to list the apps.ionic → Pass --ionic-app-type capacitor or --ionic-app-type cordova (Step 4).--include once support ships.1) → Single resources failed. Create them by hand. Never import the app again to fix them. That duplicates the app.npx @capawesome/cli apps:delete --app-id <APP_ID> --yes.apps:link (Step 7).npm uninstall @capacitor/live-updates fails → The package may be listed under another name. Search package.json for a package that contains live-updates.npx cap sync fails after the plugin swap → Check that the installed @capawesome/capacitor-live-update version matches the Capacitor version in package.json.LiveUpdate.ready() is not called in time. Call it as the first step of the app start.autoUpdateStrategy: "background" → On resume, a check only runs if the last one is more than 15 minutes old. Force-close and restart the app.appId is the Capawesome Cloud app ID and that the bundle was uploaded to the channel of the device. The Analytics page of the app in the Console shows why devices got no update.LiveUpdates is not defined or a similar runtime error → An import still points to @capacitor/live-updates, or the class name was not changed from LiveUpdates to LiveUpdate.Deploy is not defined → The project uses the legacy Cordova SDK (cordova-plugin-ionic). Read references/cordova-sdk-migration.md.activeApplicationPathChanged is always false → The Capawesome SDK returns { nextBundleId }. Update all checks of the sync result.npx @capawesome/cli whoami. For CI/CD, check that the CAPAWESOME_TOKEN secret is set.android platform has not been added yet → The android/ folder is not committed (Step 8).capawesome-cloud skill's references/certificates-android.md or references/certificates-ios.md.invalid source release → Set the JAVA_VERSION variable in the environment of the build. Read the capawesome-cloud skill's references/build-troubleshooting.md.capawesome-cloud skill's references/apple-app-store-credentials.md or references/google-play-store-credentials.md.Build #... not found → The build number is wrong, or the build belongs to another app. List the builds with npx @capawesome/cli apps:builds:list --app-id <APP_ID> --json.--app-id is the Capawesome Cloud app ID, that renamed resources are used by their new name, and that CAPAWESOME_TOKEN is available as a secret.capawesome-cloud: Setup of Native Builds, Live Updates, App Store Publishing, and Automations in Capawesome Cloud. Used by the manual fallback.capawesome-cli: Installation, authentication, and CI/CD usage of the Capawesome CLI.ionic-enterprise-sdk-migration: If the project also uses Ionic Enterprise SDK plugins (Auth Connect, Identity Vault, Secure Storage), use this skill to move them to the Capawesome Premium SDKs.capacitor-app-upgrades: Upgrade the app to a newer Capacitor version.capgo-cloud-migration: Use this skill instead if the project migrates from Capgo, not from Ionic Appflow.capawesome-mcp: Connect an MCP client to the hosted Capawesome MCP server for current documentation and Capawesome Cloud management.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ionic-appflow, capawesome-cloud, live-update, mobile-migration, capacitor, cordova
2 skills in this plugin
npx claudepluginhub capawesome-team/skills --plugin ionic-migrationsOther plugins' skills for the same job