# README

GO Feature Flag Migration cli

The migration command line purpose is to migrate your configuration file from the flag format in version v0.x.x to the format v1.x.x.

We changed the format to extend the capabilities of GO Feature Flag, despite that the old format will still be supported, it is better to update your configuration file.

How to install the cli

Install using Homebrew (mac and linux)

brew tap thomaspoignant/homebrew-tap
brew install go-feature-flag-migration-cli

Install using Scoop (windows)

scoop bucket add org https://github.com/thomaspoignant/scoop.git
scoop install go-feature-flag-migration-cli

Install using docker

docker pull gofeatureflag/go-feature-flag-migration-cli

More information about the usage of the container in the dockerhub page.

How to use the cli

# example:
go-feature-flag-migration-cli --input-format=yaml --input-file=/input/my-go-feature-flag-config-v0.x.x.yaml --output-format=yaml --output-file=input/my-go-feature-flag-config-v1.x.x.yaml

The command line has 4 parameters:

paramdescription
--input-file(mandatory) The location of your configuration file in version v0.x.x.
--input-format(mandatory) The format of your current configuration file.
Available formats are yaml, json, toml.
--output-file(optional) The location where the new configuration file will be stored in version v1.x.x.
If omitted the configuration will be output in the console.
--output-format(optional) The target format of the configuration.
Available formats are yaml, json, toml.
If omitted yaml will be used.

# Packages

No description provided by the author