Skip to content

YAML to Shared Flow

This command takes a YAML document and converts it into a ready-to-use Apigee shared flow bundle.

Usage

The yaml-to-sharedflow command takes two parameters -input and -output

  • --input is the YAML document that contains the shared flow definitions

  • --output is either a bundle zip or a bundle directory to be created

  • --output full path is created if it does not exist (like mkdir -p)

Bundle resources are read relative to the location of the --input

Examples

Below are a few examples for using the yaml-to-sharedflow command.

Create bundle zip

Creating a bundle zip

apigee-go-gen transform yaml-to-sharedflow \
  --input ./examples/yaml-first/owasp/sharedflow.yaml \
  --output ./out/sharedflows/owasp.zip 

Create bundle dir

Creating a bundle directory

apigee-go-gen transform yaml-to-sharedflow \
  --input ./examples/yaml-first/owasp/sharedflow.yaml \
  --output ./out/sharedflows/owasp