Useful Chef commands

  • 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

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


    Leave a Reply

    Fill in your details below or click an icon to log in: Logo

    You are commenting using your account. Log Out / Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out / Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out / Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out / Change )

    Connecting to %s

    %d bloggers like this: