LinuxCommandLibrary

berks

Dependency manager for Chef cookbooks

TLDR

Install cookbook dependencies

$ berks install
copy
Update a specific cookbook and its dependencies
$ berks update [cookbook-name]
copy
Upload cookbooks to a Chef Infra Server
$ berks upload
copy
Package cookbooks into an archive
$ berks package [output.tar.gz]
copy
List installed cookbooks and dependencies
$ berks list
copy
Check for outdated cookbook versions
$ berks outdated
copy
Generate a dependency graph visualization
$ berks viz
copy
Show cookbook info
$ berks info [cookbook-name]
copy

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.lock
update
Update one or all cookbook dependencies
upload
Upload resolved cookbooks to the Chef Infra Server
package
Package cookbook dependencies into a tar archive
list
List cookbooks and their dependencies
outdated
Show cookbooks with newer versions available
viz
Generate a dependency graph image
info
Display metadata for a specific cookbook
apply
Apply version locks to a Chef environment
vendor
Vendor cookbooks into a local directory
version
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.

SEE ALSO

chef(1), knife(1), kitchen(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community