Import and Export Forms and Flows Using the Deploy CLI

Overview

This article explains how to import and export flows with the Deploy CLI for yaml and directory formats.

Applies To
  • Forms
  • Flows
  • Deploy CLI
Solution

To export the tenant settings, including forms and flows, use one of the following commands

  • To export as a directory: a0deploy export -c config.json -f directory -o tenant-settings-directory 
  • To export in yaml format: a0deploy export -c config.json --format=yaml --output_folder=tenant-settings-folder 

 

To import these using a yaml file, include the following information in the file:

 

forms:

 - name: Form1

  body: ./forms/form1.json

 - name: Form2

  body: ./forms/form2.json

flows:

 - name: Flow1

  body: ./flows/flow1.json

 - name: Flow2

  body: ./flows/flow2.json

 

For yaml and directory imports, ensure the following prerequisites are met:

  1. Ensure the forms to be imported are saved as .json files within the forms folder.
  2. Ensure the flows to be imported are saved as .json files within the flows folder.

 

 

To import or export only specific items, use the AUTH0_INCLUDED_ONLY configuration variable, specifying 'forms' or 'flows' as elements within its array.

Recommended content

No recommended content found...