Export Kestra flows

Exports one or more Kestra flows as a ZIP archive. You can specify flows by their ID and namespace.

yaml
type: "io.kestra.plugin.kestra.flows.ExportById"

Export a single flow

yaml
id: export_single_flow
namespace: company.team

tasks:
  - id: export_flow_by_id
    type: io.kestra.plugin.kestra.flows.ExportById
    kestraUrl: http://localhost:8080
    auth:
      username: [email protected] # pass your Kestra username as secret or KV pair
      password: Admin1234 # pass your Kestra password as secret or KV pair
    flows:
      - id: my_flow_id
        namespace: my.flow.namespace

Export multiple flows from different namespaces

yaml
id: export_multiple_flows
namespace: company.team

tasks:
  - id: export_flows
    type: io.kestra.plugin.kestra.flows.ExportById
    kestraUrl: https://my-ee-instance.io
    auth:
      username: [email protected] # pass your Kestra username as secret or KV pair
      password: Admin1234 # pass your Kestra password as secret or KV pair
    tenantId: main
    flows:
      - id: flow_one
        namespace: prod.data
      - id: flow_two
        namespace: dev.analytics
      - id: flow_three
        namespace: common.utils
Properties

Authentication information.

The flows to export.

Kestra API URL. If null, uses 'kestra.url' from configuration. If that is also null, defaults to 'http://localhost: 8080'.

The tenant ID to use for the request, defaults to current tenant.

Format uri

URI of the exported flows ZIP file

API token.

Password for HTTP Basic authentication.

Username for HTTP Basic authentication.