Importing and exporting data to and from Flipt
flipt import
and flipt export
support the --address
and --token
flags to enable transferring data to and from Flipt instances via the API instead of requiring a direct database connection.
HTTP
and gRPC
are supported by the --address
flag.
flipt import
command. You can either import from a file or from STDIN.
To import from STDIN, Flipt requires the --stdin
flag:
--stdin
, Flipt requires the file to be imported as an argument:
--drop
flag that will drop all data in your Flipt database tables before importing. This is to ensure that no data collisions occur during the import.
--drop
flag as it will immediately drop all data
and there is no undo. It’s recommended to first backup your database before
running this command just to be safe.import
command.
flipt export
command.
By default, export
will output to STDOUT:
-o filename
or --output filename
flags:
default
namespace. Use the flag --namespaces
to export from a different namespace or multiple namespaces.
--all-namespaces
flag is a boolean flag that tells export to export all
namespaces.--sort-by-key
flag can be used.
export
command.