← 返回命令列表

Linux command

berks 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Install cookbook dependencies

berks install

Update a specific cookbook

berks update [cookbook-name]

Upload cookbooks

berks upload

Package cookbooks

berks package [output.tar.gz]

List installed cookbooks

berks list

Check for outdated

berks outdated

Generate a dependency graph

berks viz

Show cookbook info

berks info [cookbook-name]

说明

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.

参数

--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

FAQ

What is the berks command used for?

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.

How do I run a basic berks example?

Run `berks install` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --format _value_ do in berks?

Output format: human (default), json, null