3 releases
0.1.3 | Aug 14, 2024 |
---|---|
0.1.2 | Aug 14, 2024 |
0.1.0 | Jun 16, 2024 |
#123 in Configuration
111 downloads per month
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:
- Single Migration: Convert a single subscription file from XML to YAML.
- 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