app subscription_migrator

migrate wso2 subs

3 releases

0.1.3 Aug 14, 2024
0.1.2 Aug 14, 2024
0.1.0 Jun 16, 2024
Download history 220/week @ 2024-08-14 13/week @ 2024-09-11 13/week @ 2024-09-18 52/week @ 2024-09-25 37/week @ 2024-10-02

104 downloads per month

MIT license

18KB
455 lines

Subscription Migrator

Overview

This CLI tool is designed to facilitate the migration of API subscription configurations from XML to YAML format. It provides two main functionalities:

  1. Single Migration: Convert a single subscription file from XML to YAML.
  2. Bulk Migration: Search directories for subscription files matching a specified prefix and convert them from XML to YAML.

Prerequisites

Before using the CLI, ensure that the following environment variables are set:

  • NPR_PLANE_URL: The control plane URL for non-production environments.
  • PROD_PLANE_URL: The control plane URL for the production environment.

These environment variables are required for the migration process. If they are not set, the CLI will return an error.

Installation

Cargo

To install the Migrator CLI using Cargo, run the following command:

cargo install subscription_migrator

Make sure that the Cargo bin directory is in your PATH.

Binary

To install the Migrator CLI using the binary, download the latest release from the releases page

Dependencies

~4MB
~80K SLoC