Skip to main content

Configure a Plugin Manifest

Each plugin wrapper is orchestrated by a Plugin Manifest polywrap.plugin.yaml file. The Plugin Manfiest provides the Polywrap CLI with basic information it needs to generate code bindings with the codegen command. A plugin wrapper does not need a Polywrap Manifest; the simpler Plugin Manifest is used in its place.

Content#

The Plugin Manifest contains the name of the plugin, programming language used to write the plugin, the location of the plugin's entry file (i.e. the file that exports the plugin contents), and the GraphQl schema that declares the plugin's interface. It can optionally contain an array of URI Redirects.

format: # The manifest format version
name: # (Optional) Name of plugin
language: # Plugin programming language
module: # Entry file
schema: # Wrapper schema
import_redirects: # Array of URI redirects
- uri: # Source URI to be redirected
schema: # Path to schema of the module to which URI will be redirected