---
title: Integrate Capawesome Insiders with Ionic Appflow
description: Install private Capawesome Insiders npm packages in your Ionic Appflow builds. Configure access tokens and npm registry for Capacitor CI/CD.
---

# Ionic Appflow

You can use private Capawesome npm packages within your [Ionic Appflow](https://ionic.io/appflow){:target="_blank"} builds by configuring the Capawesome npm registry.
This guide shows you how to set up authentication to access the private packages from the Capawesome Insiders program.

!!! info "Ionic Appflow is being discontinued"

    Ionic Appflow reaches end of life on December 31, 2027. [Ionic officially recommends Capawesome](https://ionic.io/blog/%f0%9f%9a%80-announcing-a-partnership-with-capawesome){:target="_blank"} as its preferred migration partner for Appflow. Read [Announcing Our Official Partnership with Ionic](../../blog/posts/announcing-partnership-with-ionic.md) for the details and [Migrating from Ionic Appflow](../../cloud/migrations/ionic-appflow.md) for the step-by-step guide.

## Preparation

### Create an Ionic Appflow Environment Variable

[Get your license key](../faq.md#where-can-i-find-my-license-key) and add it to your Ionic Appflow environment as an encrypted secret with the name `CAPAWESOME_NPM_REGISTRY_TOKEN` as described in [Using private npm modules](https://ionic.io/docs/appflow/cookbook/private_npm_modules){:target="_blank"}.

???+ warning "Keep your license key secure"

    Never commit your license key directly to your repository and always use environment variables to store sensitive information like authentication tokens.

## Configuration

### Configure the npm registry

Create a new file named `.npmrc` in the root of your project and add the following content:

```.npmrc
@capawesome-team:registry=https://npm.registry.capawesome.io
//npm.registry.capawesome.io/:_authToken=${CAPAWESOME_NPM_REGISTRY_TOKEN}
```

This file will automatically configure npm to use the Capawesome registry for `@capawesome-team` packages during Ionic Appflow builds.
