chef generate cookbook cookbooks/{cookbook}
chef generate template cookbooks/{cookbook}/ {file}
Enable whyrun mode with -W, --why-run
chef-client --local-mode -Fmin -W --runlist 'recipe[{cookbook}::{recipe}]'
chef-client --local-mode --runlist 'recipe[{cookbook}::{recipe}]'
Cookbook webdev can be used by Vagrant. It has two recipes: