Grafbase Extension Command

Tools to create, manage, and deploy Grafbase extensions.

Create a new Grafbase extension.

Usage:

grafbase extension init --type <TYPE> <PATH>
  • --type: Specify the type of extension to create. Either auth or resolver.

Build and package a Grafbase extension.

Usage:

grafbase extension build [OPTIONS]
  • --output: Specify the output directory for the built extension. Defaults to ./build.
  • --debug: Build the extension in debug mode. Results in a larger and slower build output.
  • --source-dir: Specify the source directory for the extension. Defaults to ..
  • --scratch-dir: Specify the scratch directory for the extension. Defaults to ./target.