Import & Export Flows
The Nexla CLI supports methods to export flow specifications into JSON files and subsequently import the JSON specifications into new flows in the same or different user accounts. This is useful for:
- Flow Migration: Moving flows between environments or accounts
- Flow Replication: Creating copies of existing flows with modifications
- Backup & Recovery: Creating backups of flow configurations
- Development & Testing: Testing flow configurations in different environments
Export a Flow
Use this method to export one or more flows originating from a data source. Each Nexla source can have multiple flow branches connected to it.
Export Options
- Automatic Export: Use the
-aoption to automatically export all branches - Selective Export: Call without the
-aoption to select specific branches interactively
- Nexla CLI
Flow Export: Command
nexla flows export
usage: nexla flows export [--source SOURCE] [--output_file OUTPUT_FILE] [options]
description: Export flow specification
arguments:
--source SOURCE, -s SOURCE
id of source to be exported
--output_file OUTPUT_FILE, -o OUTPUT_FILE
name of output file to be exported
options:
-a, --all Export all the flows of source(by default without entering the pipeline ids)
Export Examples
Export flows for source 9311 to a local file:
- Nexla CLI
Flow Export: Examples
# Export specific flows (interactive selection)
nexla flows export -s 9311 -o ~/Desktop/export_file.json
# Export all flows automatically
nexla flows export -s 9311 -o ~/Desktop/export_file.json -a