pack package-buildpack

pack package-buildpack

Package buildpack in OCI format.


package-buildpack allows users to package (a) buildpack(s) into OCI format, which can then to be hosted in image repositories. You can also package a number of buildpacks together, to enable easier distribution of a set of buildpacks. Packaged buildpacks can be used as inputs to pack build (using the --buildpack flag), and they can be included in the configs used in pack create-builder and pack package-buildpack. For more on how to package a buildpack, see:

pack package-buildpack <name> --config <package-config-path> [flags]


pack package-buildpack my-buildpack --config ./package.toml


  -c, --config string        Path to package TOML config (required)
  -f, --format string        Format to save package as ("image" or "file")
  -h, --help                 Help for 'package-buildpack'
      --publish              Publish to registry (applies to "--format=image" only)
      --pull-policy string   Pull policy to use. Accepted values are always, never, and if-not-present. The default is always

Options inherited from parent commands

      --no-color     Disable color output
  -q, --quiet        Show less output
      --timestamps   Enable timestamps in output
  -v, --verbose      Show more output


  • pack - CLI for building apps using Cloud Native Buildpacks