Useful Chef commands

2015/10/01
  • Create a cookbook with knife:
    knife cookbook create cookbook_name
  • Converge a cookbook with debug info:
    kitchen converge -l=DEBUG
  • Install or update cookbook dependencies:
    berks install

    or, if you need to update, after deleting the Berksfile.lock from the cookbook folder, execute:

    berks update
  • Increase cookbook minor version with knife:
    knife spork bump your_cookbook_name minor

    More info about versioning on semver.org

  • Note: Will update this post with useful Chef commands in the near future


    %d bloggers like this: