Create - WunderGraph

Usage

A plugin subgraph name must be unique within a namespace.

npx wgc router plugin create [pluginName] --label [labelName]

After creating a plugin subgraph, you can publish it with wgc router plugin publish.

Description

The npx wgc router plugin create command allows you to create a new plugin subgraph within the Cosmo platform. Plugin subgraphs are specialized GraphQL schemas that extend the functionality of your federated graph through plugins. The [pluginName] argument specifies the name of the new plugin subgraph. Use npx wgc router plugin create -h to see all the available options.

Parameters

Options

Examples

npx wgc router plugin create projects --label team=A
npx wgc router plugin create projects --label team=infrastructure --readme ./plugin-readme.md
npx wgc router plugin create projects --namespace production --label env=prod