berks
Dependency manager for Chef cookbooks
TLDR
Install cookbook dependencies
SYNOPSIS
berks subcommand [options]
DESCRIPTION
berks (Berkshelf) is a dependency manager for Chef cookbooks. It resolves and manages cookbook dependencies defined in a Berksfile, similar to how Bundler manages Ruby gems.
Berkshelf ensures consistent cookbook versions across development, testing, and production environments. It can fetch cookbooks from the Chef Supermarket, Git repositories, or local paths.
PARAMETERS
--format value
Output format: human (default), json, null--berksfile value
Path to the Berksfile--except value
Exclude cookbook groups--only value
Include only specified groups-q, --quiet
Suppress output-d, --debug
Enable debug output
SUBCOMMANDS
install
Install cookbooks into the local cache based on Berksfile.lockupdate
Update one or all cookbook dependenciesupload
Upload resolved cookbooks to the Chef Infra Serverpackage
Package cookbook dependencies into a tar archivelist
List cookbooks and their dependenciesoutdated
Show cookbooks with newer versions availableviz
Generate a dependency graph imageinfo
Display metadata for a specific cookbookapply
Apply version locks to a Chef environmentvendor
Vendor cookbooks into a local directoryversion
Display Berkshelf version
CAVEATS
Berkshelf is deprecated and no longer actively maintained. New users should use Policyfiles instead, which is the recommended approach for managing Chef cookbook dependencies. Existing Berkshelf users are encouraged to migrate.
HISTORY
Berkshelf was created by Jamie Winsor and Seth Vargo in 2012 to solve Chef cookbook dependency management. It became part of the Chef Development Kit (ChefDK) and later Chef Workstation. Chef announced Policyfiles as the successor in 2015.
