This is a beta pre-release of the Cloud Native Buildpack local CLI. This platform implementation should be relatively stable and reliable, but breaking changes in the underlying specification may be implemented without notice.
Prerequisites
Install
Linux
AMD64
(curl -sSL "https://github.com/buildpacks/pack/releases/download/v0.29.0-rc1/pack-v0.29.0-rc1-linux.tgz" | sudo tar -C /usr/local/bin/ --no-same-owner -xzv pack)
ARM64
(curl -sSL "https://github.com/buildpacks/pack/releases/download/v0.29.0-rc1/pack-v0.29.0-rc1-linux-arm64.tgz" | sudo tar -C /usr/local/bin/ --no-same-owner -xzv pack)
MacOS
Intel
(curl -sSL "https://github.com/buildpacks/pack/releases/download/v0.29.0-rc1/pack-v0.29.0-rc1-macos.tgz" | sudo tar -C /usr/local/bin/ --no-same-owner -xzv pack)
Apple Silicon
(curl -sSL "https://github.com/buildpacks/pack/releases/download/v0.29.0-rc1/pack-v0.29.0-rc1-macos-arm64.tgz" | sudo tar -C /usr/local/bin/ --no-same-owner -xzv pack)
Manually
- Download the
.tgz
or.zip
file for your platform - Extract the
pack
binary - (Optional) Add the directory containing
pack
toPATH
, or copypack
to a directory like/usr/local/bin
Run
Run the command pack
.
You should see the following output:
CLI for building apps using Cloud Native Buildpacks%0A%0AUsage:%0A pack [command]%0A%0AAvailable Commands:%0A build Generate app image from source code%0A builder Interact with builders%0A buildpack Interact with buildpacks%0A extension Interact with extensions%0A config Interact with your local pack config file%0A inspect Show information about a built app image%0A stack Interact with stacks%0A rebase Rebase app image with latest run image%0A sbom Interact with SBoM%0A completion Outputs completion script location%0A report Display useful information for reporting an issue%0A version Show current 'pack' version%0A help Help about any command%0A%0AFlags:%0A -h, --help Help for 'pack'%0A --no-color Disable color output%0A -q, --quiet Show less output%0A --timestamps Enable timestamps in output%0A -v, --verbose Show more output%0A --version Show current 'pack' version%0A%0AUse "pack [command] --help" for more information about a command.
Info
Builders created with this release of the pack CLI contain lifecycle v0.15.2 by default.
Changelog
Features
- Clarify trusted builder help text (#1659 by @natalieparellano)
- Fix help text for SBOM (#1658 by @natalieparellano)
- Fix broken tests merged by mistake in main branch (#1657 by @jjbustamante)
- Fix typo in pack stack suggest (#1647 by @AidanDelaney)
- perf: parallelize builder's module processing (#1634 by @matejvasek)
- build(deps): bump github.com/buildpacks/lifecycle from 0.15.3 to 0.16.0 (#1631 by @dependabot[bot])
- Buildpack URL formatted incorrect when using a registry mirror (#1624 by @jjbustamante)
- cleanup: narrow docker interface (#1622 by @matejvasek)
- RFC-0078 Support for --pre-buildpack and --post-buildpack (#1621 by @jkutner)
- Extension-Inspect (#1616 by @itsdarshankumar)
- Adding a warning message when the SBoM could not be found in the daemon (#1614 by @jjbustamante)
- show extensions when pack inspect (#1611 by @itsdarshankumar)
- if lifecycle image is supplied, consider its apis (#1607 by @joe-kimmel-vmw)
- add pack extension --help (#1603 by @itsdarshankumar)
- Fixing non-deterministic layer and metadata ordering during pack builder create (#1600 by @jjbustamante)
- adds flag for saving report toml to back build and rebase (#1598 by @joe-kimmel-vmw)
- build: update to golang 1.19 (#1594 by @jasonschroeder-sfdc)
- add Extensions and Detection Order (Extensions) (#1581 by @harikannan512)
Contributors
We'd like to acknowledge that this release wouldn't be as good without the help of the following amazing contributors:
@AidanDelaney, @dependabot[bot], @dfreilich, @harikannan512, @itsdarshankumar, @jasonschroeder-sfdc, @jjbustamante, @jkutner, @joe-kimmel-vmw, @matejvasek, @natalieparellano