Overview of chef-shell executable
mainchef-shell is a recipe debugging tool that provides an Interactive Ruby (IRb) session. It allows you to use breakpoints within recipes and supports both recipe and attribute file syntax. It is primarily used to debug cookbooks and manipulate Chef Infra data interactively.
chef-shell can be run in three distinct modes:
- Standalone (Default): No cookbooks are loaded and the run-list is empty.
- Solo (
-s,--solo): Acts as a Chef Solo Client. It loads configuration from~/.chef/config.rband any provided JSON attributes. If the JSON attributes define arun_list, that run-list is used. - Client (
-z,--client): Acts as a Chef Infra Client. It reads configuration from~/.chef/client.rband contacts the Chef Infra Server to retrieve the node'srun_list, attributes, and cookbooks.