3 releases

0.1.3 Aug 14, 2024
0.1.2 Aug 14, 2024
0.1.0 Jun 16, 2024

#157 in Configuration

Download history 220/week @ 2024-08-13 11/week @ 2024-09-10 9/week @ 2024-09-17 48/week @ 2024-09-24 47/week @ 2024-10-01

111 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
~79K SLoC