pack buildpack new

pack buildpack new

Creates basic scaffolding of a buildpack.


buildpack new generates the basic scaffolding of a buildpack repository. It creates a new directory name in the current directory (or at path, if passed as a flag), and initializes a buildpack.toml, and two executable bash scripts, bin/detect and bin/build.

pack buildpack new <id> [flags]


pack buildpack new sample/my-buildpack


  -a, --api string        Buildpack API compatibility of the generated buildpack (default "0.8")
  -h, --help              Help for 'new'
  -p, --path string       Path to generate the buildpack
  -t, --targets strings   Targets are the list platforms that one targeting, these are generated as part of scaffolding inside buildpack.toml file. one can provide target platforms in format [os][/arch][/variant]:[distroname@osversion@anotherversion];[distroname@osversion]
                          	- Base case for two different architectures :  '--targets "linux/amd64" --targets "linux/arm64"'
                          	- case for distribution version: '--targets "windows/amd64:windows-nano@10.0.19041.1415"'
                          	- case for different architecture with distributed versions : '--targets "linux/arm/v6:ubuntu@14.04"  --targets "linux/arm/v6:ubuntu@16.04"'
  -V, --version string    Version of the generated buildpack (default "1.0.0")

Options inherited from parent commands

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