# I need to execute a particular cookbook in lot of cookbooks available in node run-list at the time of run chef-client

**URL:** <https://discourse.chef.io/t/i-need-to-execute-a-particular-cookbook-in-lot-of-cookbooks-available-in-node-run-list-at-the-time-of-run-chef-client/3570>\
**Category:** Chef Infra (archive)\
**Created:** [January 5, 2013, 12:27pm UTC](https://discourse.chef.io/t/i-need-to-execute-a-particular-cookbook-in-lot-of-cookbooks-available-in-node-run-list-at-the-time-of-run-chef-client/3570 "2013-01-05T12:27:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ganesan\_A](https://avatars.discourse-cdn.com/v4/letter/g/f07891/32.png) [@Ganesan\_A](https://discourse.chef.io/u/Ganesan_A)\
**Post date:** [January 5, 2013, 12:27pm UTC](https://discourse.chef.io/t/i-need-to-execute-a-particular-cookbook-in-lot-of-cookbooks-available-in-node-run-list-at-the-time-of-run-chef-client/3570/1 "2013-01-05T12:27:14Z")

</div>

hi,

I have lot of cookbooks in node run-list but I need to run only one cookbook at  
a time once you run the chef-client it executes all in run-list how can I  
execute for particular cookbook?? I don’t want to do in bootstrap time ,I  
need after bootstrapping ,all cookbooks upload for particular node one by one  
and add in run list and execute with ‘sudo chef-client’ command for  
particular cookbook please send any solution for this as soon as possible.

Thanks and Regards,  
Ganesan.A

---

<div class="post-metadata">

**Author:** ![AJ\_Christensen](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/aj_christensen/32/525_2.png) [@AJ\_Christensen](https://discourse.chef.io/u/AJ_Christensen)\
**Post date:** [January 5, 2013, 7:38pm UTC](https://discourse.chef.io/t/i-need-to-execute-a-particular-cookbook-in-lot-of-cookbooks-available-in-node-run-list-at-the-time-of-run-chef-client/3570/2 "2013-01-05T19:38:06Z")

</div>

Ganesan.A,

Use the --override-runlist functionality of Chef Client/Chef Solo to only  
run an individual cookbook.

e.g. 'sudo chef-client --override-runlist "recipe[banana],role[purple]"'

Cheers,

AJ

On 6 January 2013 01:27, [ganesan15785@gmail.com](mailto:ganesan15785@gmail.com) wrote:

> hi,
> 
> I have lot of cookbooks in node run-list but I need to run only one  
> cookbook at  
> a time once you run the chef-client it executes all in run-list how can I  
> execute for particular cookbook?? I don’t want to do in bootstrap time ,I  
> need after bootstrapping ,all cookbooks upload for particular node one by  
> one  
> and add in run list and execute with ‘sudo chef-client’ command for  
> particular cookbook please send any solution for this as soon as possible.
> 
> Thanks and Regards,  
> Ganesan.A
